/* =========================================================
   VALAYRE AGENCY — Premium design system
   Type: Bricolage Grotesque — single display + copy.
   ========================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- TOKENS ---------- */
:root {
  --bone:      #F4F1EA;
  --bone-2:    #ECE8DE;
  --ink:       #0E1116;
  --ink-2:     #4A4E55;
  --ink-3:     #8A8D93;
  --line:      rgba(14, 17, 22, 0.13);
  --line-soft: rgba(14, 17, 22, 0.07);
  --accent:    #3554F4;      /* restrained electric */
  --paper:     #FBFAF6;

  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --sans:    'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  --wrap:   1280px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:cubic-bezier(0.65, 0.05, 0, 1);
  --nav-h:  76px;
}

/* ---------- BASE ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
body.is-loading { overflow: hidden; height: 100vh; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- THEME SPECIFIC OVERRIDES ---------- */
body.theme-software, body.theme-studio {
  background: #090B0F;
  color: #FBFAF6;
  --bone:      #090B0F;
  --bone-2:    #141720;
  --ink:       #FBFAF6;
  --ink-2:     #C5C9D0;
  --ink-3:     #787C85;
  --line:      rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --paper:     #0F131C;
  --accent:    #00E5FF; /* glowing cyan for software themes */
}
body.theme-textil {
  background: #1C1A17;
  color: #E6DFD3;
  --bone:      #1C1A17;
  --bone-2:    #2A2723;
  --ink:       #E6DFD3;
  --ink-2:     #C7BFB3;
  --ink-3:     #968E82;
  --line:      rgba(230, 223, 211, 0.14);
  --line-soft: rgba(230, 223, 211, 0.07);
  --paper:     #25221F;
  --accent:    #D4AF37; /* gold sand accent for editorial textil */
}
body.theme-auto {
  background: #FAF6EE;
  color: #1C1A17;
  --bone:      #FAF6EE;
  --bone-2:    #EFEAE0;
  --ink:       #1C1A17;
  --ink-2:     #524E48;
  --ink-3:     #948E84;
  --line:      rgba(28, 26, 23, 0.12);
  --line-soft: rgba(28, 26, 23, 0.06);
  --paper:     #FCFAF5;
  --accent:    #E2A228; /* deep warm amber for automations */
}

/* Make solid black background of monogram transparent on dark page themes */
body.theme-software .brand__mark,
body.theme-studio .brand__mark,
body.theme-textil .brand__mark,
body.theme-software .loader__mark-3d,
body.theme-studio .loader__mark-3d,
body.theme-textil .loader__mark-3d {
  mix-blend-mode: screen;
}

/* Typography styles */
.hero__title, .sec-title, .srv__title, .step__t, .stat__n,
.manifesto__title, .quote__title, .quote__amount, .cta__title,
.marquee__track span, .footer__word, .loader__count, .sub-hero__title,
.web-card__title, .case-title, .ts-title {
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero__title, .cta__title, .quote__amount, .stat__n, .sub-hero__title { letter-spacing: -0.035em; }

body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- FX: shader canvas + grain ---------- */
.fx-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.9; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
main, .nav, .footer, .marquee, .callbar { position: relative; z-index: 2; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; width: 9px; height: 9px; border-radius: 50%;
  box-sizing: border-box; border: 1.5px solid transparent;
  background: var(--ink); pointer-events: none; transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
  display: none; mix-blend-mode: normal;
}
.cursor.is-active { display: block; }
.cursor.on-dark { background: var(--bone); }
body.theme-software .cursor.on-dark,
body.theme-studio .cursor.on-dark {
  background: #FBFAF6;
}
body.theme-textil .cursor.on-dark {
  background: #E6DFD3;
}
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}
.cursor.is-hover { width: 34px; height: 34px; background: transparent; border-color: var(--ink); }
.cursor.is-hover.on-dark { background: transparent; border-color: var(--bone); }
body.theme-software .cursor.is-hover.on-dark,
body.theme-studio .cursor.is-hover.on-dark {
  background: transparent;
  border-color: #FBFAF6;
}
body.theme-textil .cursor.is-hover.on-dark {
  background: transparent;
  border-color: #E6DFD3;
}
.cursor__label {
  position: absolute; top: 100%; left: 50%; margin-top: 9px;
  padding: 4px 9px; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  opacity: 0; transform: translate(-50%, -4px) scale(0.8); transform-origin: top center;
  transition: opacity 0.28s, transform 0.28s var(--ease);
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.cursor.on-dark .cursor__label { background: var(--bone); color: var(--ink); }
.cursor.is-hover .cursor__label { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--ink); z-index: 100; transform-origin: left;
}

/* ---------- PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bone);
  display: grid; place-items: center; transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; }

.loader__3d-wrapper {
  perspective: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
}
.loader__mark-3d {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: rotate3dLogo 3.2s infinite linear;
}
@keyframes rotate3dLogo {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  100% { transform: rotateY(360deg) rotateX(360deg); }
}
.loader__title-wrapper {
  display: flex;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  color: var(--ink);
  text-transform: uppercase;
  padding-left: 0.35em; /* offsets trailing letter-spacing */
}
.loader__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: letterReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.loader__letter:nth-child(1) { animation-delay: 0.1s; }
.loader__letter:nth-child(2) { animation-delay: 0.18s; }
.loader__letter:nth-child(3) { animation-delay: 0.26s; }
.loader__letter:nth-child(4) { animation-delay: 0.34s; }
.loader__letter:nth-child(5) { animation-delay: 0.42s; }
.loader__letter:nth-child(6) { animation-delay: 0.5s; }
.loader__letter:nth-child(7) { animation-delay: 0.58s; }

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.55; }
.eyebrow--inv { color: rgba(255,255,255,0.7); }

/* ---------- BUTTONS ---------- */
.btn {
  --py: 0.85em; --px: 1.6em;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: var(--py) var(--px); font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.005em; border-radius: 100px; border: 1px solid transparent;
  overflow: hidden; isolation: isolate; transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.btn--lg { --py: 1.05em; --px: 2.1em; font-size: 1rem; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease);
}
.btn:hover::after { transform: scaleY(1); }

.btn--solid { background: var(--ink); color: var(--bone); }
.btn--solid::after { background: var(--accent); transform-origin: bottom; }
.btn--solid:hover { color: #fff; }

.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line::after { background: var(--ink); }
.btn--line:hover { color: var(--bone); border-color: var(--ink); }

.btn--solid-inv { background: var(--bone); color: var(--ink); }
.btn--solid-inv::after { background: var(--accent); }
.btn--solid-inv:hover { color: #fff; }

.btn--line-inv { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn--line-inv::after { background: var(--bone); }
.btn--line-inv:hover { color: var(--ink); border-color: var(--bone); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bone) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 28px; height: 28px; object-fit: contain; }
.brand__wordmark { height: 22px; width: auto; object-fit: contain; display: block; }

.nav__links { display: none; gap: 1.8rem; }
.nav__links a { position: relative; font-size: 0.9rem; color: var(--ink-2); transition: color 0.3s; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-5px; width:0; height:1px; background: var(--ink); transition: width 0.4s var(--ease); }
.nav__links a:hover { color: var(--ink); } .nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--ink); font-weight: 500; }
.nav__links a.is-active::after { width: 100%; background: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: 0.35em; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-3); }
.lang span { transition: color 0.3s; padding: 0.15em; }
.lang span.is-active { color: var(--ink); }
.lang i { font-style: normal; opacity: 0.4; }
.nav__cta { display: none; }

/* ---------- MOBILE MENU BUTTON ---------- */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 105;
  box-sizing: border-box;
}
.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
  display: block;
}
@media (min-width: 1024px) {
  .nav__toggle { display: none !important; }
}

/* Hamburger active state morph to X */
.nav.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav.is-open .nav__toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- MOBILE DROP-DOWN MENU (SOLID HIGHER CONTRAST) ---------- */
.nav__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: transform 0.4s var(--ease), opacity 0.4s, visibility 0.4s;
  z-index: 99;
}
.nav.is-open .nav__mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__mobile-link {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}
.nav__mobile-link:hover,
.nav__mobile-link.is-active {
  color: var(--ink);
}
.nav__mobile-link--cta {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bone) !important;
  background: var(--ink);
  padding: 0.75rem;
  border-radius: 100px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 3vh); padding-bottom: 2rem; }
.hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { margin-bottom: clamp(1.4rem, 4vw, 2.4rem); }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.55rem, 8.2vw, 7rem); line-height: 0.98; letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span, .hero__title .line { will-change: transform; }
.line--accent { color: var(--accent) !important; }
.hero__foot { display: flex; flex-direction: column; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.2rem); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.hero__avail { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.01em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1ea672; position: relative; flex: none; }
.dot::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid #1ea672; animation: ping 2.2s infinite; }
@keyframes ping { 0%{transform:scale(.5);opacity:.9} 100%{transform:scale(1.7);opacity:0} }
.hero__scroll { display: none; align-items: center; gap: 0.7em; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.hero__scroll i { width: 34px; height: 1px; background: var(--ink-2); position: relative; overflow: hidden; }
.hero__scroll i::after { content:""; position:absolute; inset:0; background: var(--ink); transform: translateX(-100%); animation: sweep 2.4s var(--ease) infinite; }
@keyframes sweep { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 1.4rem; overflow: hidden; white-space: nowrap; background: var(--bone); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.5rem; will-change: transform; }
.marquee__track span { font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; color: var(--ink); }
.marquee__track i { font-style: normal; color: var(--accent); font-size: 1rem; }

/* ---------- MANIFESTO ---------- */
.manifesto { padding-block: clamp(6rem, 16vw, 13rem); }
.manifesto__title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6.5vw, 5.2rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; }
.manifesto__title .w { display: inline-block; opacity: 1; transition: opacity 0.6s var(--ease); }
.js .manifesto__title .w:not(.is-lit) { opacity: 0.12; }
.manifesto__title .w.w--mut.is-lit, .manifesto__title .w.is-lit { opacity: 1; }
.manifesto__title .w--mut { color: var(--ink-3); }
.manifesto__title .w--mut.is-lit { color: var(--ink-2); }

/* ---------- SECTION HEAD ---------- */
.sec-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; margin-top: 1.1rem; }
.sec-sub { color: var(--ink-2); margin-top: 1.1rem; font-size: 1.05rem; max-width: 44ch; }

/* ---------- SERVICES GRID (HOME PORTAL) ---------- */
.services { padding-bottom: clamp(4rem, 10vw, 8rem); }
.srv { border-top: 1px solid var(--line); }
.srv__item {
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start;
  padding-block: clamp(2rem, 5vw, 3.4rem); border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left 0.5s var(--ease);
}
.srv__item::before { content:""; position:absolute; left:0; top:0; height:1px; width:0; background: var(--ink); transition: width 0.6s var(--ease); }
.srv__item:hover::before { width: 100%; }
.srv__idx { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-3); }
.srv__title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.04; letter-spacing: -0.02em; transition: color 0.3s; }
.srv__item:hover .srv__title { color: var(--accent); }
.srv__text { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; margin-top: 0.5rem; max-width: 52ch; }
.srv__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.srv__tags li { font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 0.4em 0.9em; transition: all 0.3s; }
.srv__item:hover .srv__tags li { border-color: var(--ink); color: var(--ink); }

/* ---------- PROCESS ---------- */
.process { padding-block: clamp(4rem, 11vw, 8rem); }
.steps { display: grid; grid-template-columns: 1fr; gap: 0; }
.step { padding-block: 1.8rem; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; color: var(--accent); }
.step__t { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0.4rem 0 0.5rem; letter-spacing: -0.01em; }
.step__d { color: var(--ink-2); max-width: 44ch; }

/* ---------- STATS ---------- */
.stats { padding-block: clamp(3rem, 8vw, 6rem); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__n { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.stat__l { font-size: 0.9rem; color: var(--ink-2); max-width: 22ch; }

/* ---------- WORK ---------- */
.work { padding-block: clamp(4rem, 11vw, 8rem); }
.work__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.proj { overflow: hidden; }
.proj__ph {
  aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; position: relative;
  background: radial-gradient(120% 120% at 30% 20%, var(--paper), var(--bone-2));
}
.proj__ph::before {
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(135deg, transparent 0 20px, var(--line-soft) 20px 21px);
  transform: translateX(-6%); transition: transform 1.2s var(--ease);
}
.proj:hover .proj__ph::before { transform: translateX(6%); }
.proj__ph::after {
  content: "VALAYRE"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); letter-spacing: 0.35em; font-size: 1.2rem; color: var(--ink-3); opacity: 0.4;
}
.proj figcaption { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.85rem; }
.proj figcaption i { font-style: normal; color: var(--ink-3); letter-spacing: 0.04em; }

/* ---------- QUOTE ---------- */
.quote { padding-block: clamp(5rem, 13vw, 10rem); border-top: 1px solid var(--line); }
.quote__inner { max-width: 960px; }
.quote__title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 1.2rem 0 clamp(2.5rem, 6vw, 4rem); max-width: 18ch; }
.quote__range { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(2rem, 5vw, 3rem); border-block: 1px solid var(--line); }
.quote__figure { display: flex; flex-direction: column; gap: 0.6rem; }
.quote__from { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.quote__amount { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.quote__note { font-size: 0.9rem; color: var(--ink-2); }
.quote__desc { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; max-width: 46ch; align-self: center; }
.quote__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: clamp(2.5rem, 6vw, 3.5rem); }

/* ---------- FINAL CTA ---------- */
.cta { background: var(--ink); color: #fff; padding-block: clamp(5rem, 14vw, 10rem); position: relative; overflow: hidden; }
.cta::before { content:""; position:absolute; inset:0; opacity:0.55; pointer-events:none; background: radial-gradient(60% 90% at 82% 0%, rgba(53,84,244,0.4), transparent 60%); }
.cta__inner { position: relative; }
.cta__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 1.4rem 0 clamp(2.2rem, 5vw, 3rem); }
.cta__title .line { display: block; overflow: hidden; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta__avail { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.cta__avail .dot { background: #3fdd9a; } .cta__avail .dot::after { border-color: #3fdd9a; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bone); padding-top: clamp(3.5rem, 8vw, 5.5rem); border-top: 1px solid var(--line); transition: background 0.5s; }
.footer__top { display: flex; flex-direction: column; gap: 3rem; padding-bottom: 3rem; }
.footer__brand { display: flex; align-items: baseline; gap: 0.6rem; }
.footer__word { font-family: var(--display); font-size: clamp(2.4rem, 9vw, 4.5rem); letter-spacing: 0.02em; line-height: 1; }
.footer__sub { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.footer__col a, .footer__col p { display: block; font-size: 0.94rem; color: var(--ink-2); margin-bottom: 0.45rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-direction: column; gap: 0.4rem; padding-block: 1.7rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-3); }
.footer__parent { letter-spacing: 0.04em; opacity: 0.85; }

/* ---------- MOBILE CALL BAR ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bone) 84%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.callbar.is-visible { transform: translateY(0); }
.callbar__a { flex: 1; text-align: center; padding: 0.9em; border-radius: 100px; font-size: 0.94rem; font-weight: 500; }
.callbar__call { background: var(--ink); color: var(--bone); }
.callbar__book { border: 1px solid var(--line); color: var(--ink); }

/* ---------- REVEAL / SPLIT ANIM ---------- */
.reveal { transition: opacity 0.9s var(--ease-io), transform 0.9s var(--ease-io); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.line > .split { display: inline-block; transition: transform 1s var(--ease-io); }
.js .line:not(.is-in) > .split { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line > .split { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dot::after, .hero__scroll i::after, .loader__mark { animation: none; }
  .fx-canvas { display: none; }
}

/* =========================================================
   SUBPAGES BASE LAYOUT
   ========================================================= */
.sub-hero {
  padding-top: calc(var(--nav-h) + 12vh);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.sub-hero__title {
  font-size: clamp(2.3rem, 7vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 1.8rem;
}
.sub-hero__title .line { display: block; overflow: hidden; }
.sub-hero__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
}
.sub-hero__cta {
  margin-top: 2.2rem;
}

/* =========================================================
   DISEÑO WEB SUBPAGE SPECIFICS
   ========================================================= */
.web-details {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.web-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.web-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.web-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.web-card__num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.web-card__title {
  font-size: 1.5rem;
  line-height: 1.2;
}
.web-card__desc {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.web-showcase {
  padding-block: clamp(4rem, 11vw, 8rem);
  border-top: 1px solid var(--line);
}
.showcase-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.showcase-box__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
.showcase-box__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.showcase-box__desc {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 44ch;
}
.showcase-box__visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: min(290px, 80vw);
  height: 570px;
  border: 11px solid #1C1A17;
  border-radius: 36px;
  background: #000;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12), inset 0 0 3px rgba(255,255,255,0.25);
  overflow: hidden;
  position: relative;
  transform: rotateY(-10deg) rotateX(8deg);
  transition: transform 0.6s var(--ease);
}
.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}
.phone-mockup__screen {
  height: 100%;
  width: 100%;
  background: #FBFAF6;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-mockup__header {
  height: 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.phone-mockup__notch {
  width: 100px;
  height: 16px;
  background: #1C1A17;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.phone-mockup__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
  font-size: 11px;
  color: #0E1116;
}
.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mock-logo { font-weight: 700; font-size: 10px; letter-spacing: 0.05em; }
.mock-menu { width: 14px; height: 1px; background: #0E1116; position: relative; }
.mock-menu::after { content:""; position:absolute; top:4px; right:0; width:9px; height:1px; background:#0E1116; }

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.2rem;
  align-items: flex-start;
}
.mock-badge {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 2px 6px;
  border-radius: 100px;
}
.mock-title {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 500;
}
.mock-lead {
  color: #4A4E55;
  line-height: 1.45;
}
.mock-btn {
  background: #0E1116;
  color: #FBFAF6;
  font-size: 8px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  margin-top: 0.3rem;
}
.mock-cards {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.mock-card {
  flex: 1;
  height: 60px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 8px;
}

/* =========================================================
   SOFTWARE SUBPAGE SPECIFICS
   ========================================================= */
.soft-cases {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.case-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 5rem);
}
.case-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.case-item__content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}
.case-badge {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
}
.case-desc {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 46ch;
}
.case-item__visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tech-terminal {
  width: 100%;
  max-width: 460px;
  background: #090B0F;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  font-family: monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #C9D1D9;
  text-align: left;
}
.tech-terminal__bar {
  background: var(--bone-2);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.tech-terminal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.tech-terminal__title {
  margin-left: 8px;
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.tech-terminal__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tech-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-cyan { color: var(--accent); }
.t-green { color: #1ea672; font-weight: bold; }
.t-yellow { color: #D4AF37; }
.t-blue { color: #58A6FF; }
.t-muted { color: var(--ink-3); }

.tech-grid-graphic {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.2rem 1.2rem;
  background: var(--line-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  justify-content: center;
}
.tg-node {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  white-space: nowrap;
}
.tg-node--active {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}
.tg-node--pulse {
  border-color: #E2A228;
  color: #E2A228;
  animation: pulseAmber 2.2s infinite ease-in-out;
}
@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,162,40,0.3); }
  50% { box-shadow: 0 0 15px 4px rgba(226,162,40,0.15); }
}
.tg-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 20px;
  position: relative;
}
.tg-line::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: walkLine 3.2s infinite linear;
}
@keyframes walkLine {
  0% { left: 0%; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* =========================================================
   AUTOMACIONES SUBPAGE SPECIFICS
   ========================================================= */
.auto-details {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.auto-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(4rem, 9vw, 7rem);
}
.auto-visual-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.01);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.auto-visual-card:hover {
  transform: scale(1.01);
  border-color: var(--accent);
}
.auto-visual-card__header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.avc-idx {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.auto-visual-card__header h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}
.avc-desc {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.6;
}
.auto-cta-panel {
  background: color-mix(in srgb, var(--bone-2) 65%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.auto-cta-panel h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}
.auto-cta-panel p {
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 54ch;
}

/* =========================================================
   VALAYRE STUDIO SUBPAGE SPECIFICS
   ========================================================= */
.studio-preview-section {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.dashboard-mockup {
  background: #110E1C;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.dashboard-mockup__bar {
  background: #090712;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.dm-title {
  margin-left: 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  font-family: monospace;
  flex: 1;
  text-align: left;
}
.dm-badge {
  font-size: 8px;
  color: #ff3366;
  border: 1px solid rgba(255,51,102,0.3);
  padding: 2px 6px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.dashboard-mockup__window {
  display: flex;
  background: #100C1F;
}
.dashboard-mockup__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.studio-features {
  padding-block: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.feature-card {
  background: var(--line-soft);
  border: 1px solid var(--line);
  padding: 2.2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.2);
}
.feature-card h3 {
  font-size: 1.45rem;
  color: var(--ink);
}
.feature-card p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* =========================================================
   TEXTIL SHOWROOM SUBPAGE SPECIFICS
   ========================================================= */
.textil-showroom-grid {
  padding-bottom: clamp(4rem, 10vw, 9rem);
}
.showroom-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 8vw, 5rem);
}
.showroom-split__info {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 6rem);
}
.sticky-text-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.ts-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}
.ts-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
}
.ts-desc {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 44ch;
}
.showroom-split__media {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.showroom-media-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bone-2);
  display: flex;
  flex-direction: column;
}
.showroom-media-card__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.showroom-media-card:hover .showroom-media-card__img {
  transform: scale(1.04);
}
.showroom-media-card__lbl {
  padding: 0.8rem 1rem;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  background: var(--bone-2);
  text-transform: uppercase;
}
.showroom-media-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background: var(--bone);
  position: relative;
  box-sizing: border-box;
  transition: background 0.4s var(--ease);
}
.showroom-media-row .showroom-media-placeholder {
  aspect-ratio: 1/1;
}
.showroom-media-placeholder .placeholder-icon {
  font-size: 2.2rem;
  color: var(--accent);
  opacity: 0.5;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.showroom-media-card:hover .showroom-media-placeholder {
  background: color-mix(in srgb, var(--accent) 3.5%, var(--bone-2));
}
.showroom-media-card:hover .placeholder-icon {
  transform: scale(1.16) rotate(12deg);
  opacity: 0.9;
}
.showroom-media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}



/* =========================================================
   RESPONSIVE OVERRIDES
   ========================================================= */
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .quote__range { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hero__lead { margin-bottom: 0; }
  
  .web-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .showroom-media-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .hero__scroll { display: inline-flex; }
  
  .srv__item { grid-template-columns: 64px minmax(0, 1fr) 240px; gap: 2.5rem; align-items: baseline; }
  .srv__item:hover { padding-left: 1.2rem; }
  .srv__tags { justify-content: flex-end; }
  
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .callbar { display: none; }
  
  .showcase-box { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  .case-item { grid-template-columns: 1.15fr 1fr; }
  .case-item:nth-child(even) .case-item__visual { order: -1; }
  .auto-visual-grid { grid-template-columns: repeat(3, 1fr); }
  
  /* Textile sticky split */
  .showroom-split { grid-template-columns: 440px 1fr; gap: 5rem; }
  .showroom-split__info { position: sticky; top: calc(var(--nav-h) + 2rem); height: fit-content; }
}

@media (min-width: 1200px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   CONTACT PAGE DETAILS & EMBEDDED LOCATION MAP
   ========================================================= */
.contact-section {
  padding-bottom: clamp(4rem, 10vw, 8rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-card {
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 5vw, 3rem);
}
.contact-card__title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-card__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-card__item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.contact-card__label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.contact-card__value {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  align-self: start;
  position: relative;
  transition: color 0.3s;
}
.contact-card__value::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.contact-card__value:hover {
  color: var(--accent);
}
.contact-card__value:hover::after {
  width: 100%;
}
.contact-card__value-text {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.map-container {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  background: var(--bone-2);
}
.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
  filter: grayscale(1) contrast(1.05) opacity(0.9);
  transition: filter 0.4s var(--ease), opacity 0.4s;
}
.map-container:hover iframe {
  filter: grayscale(0.2) contrast(1) opacity(1);
}

/* ---------- BRAND WATERMARK BACKGROUND ---------- */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin;
  height: 70vmin;
  background-image: url('assets/va-monogram.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.015; /* extremely faint so it does not disturb readability */
  pointer-events: none;
  z-index: -2;
  transition: background-image 0.5s var(--ease), opacity 0.5s;
}
body.theme-software::before,
body.theme-studio::before,
body.theme-textil::before {
  background-image: url('assets/va-monogram-white.png');
  opacity: 0.012;
}

/* ---------- INTERACTIVE FLOW SIMULATOR ---------- */
.flow-section {
  margin-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.flow-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}
.flow-section__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-block: 0.5rem 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.flow-section__desc {
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-2);
  max-width: 600px;
  margin-inline: auto;
}
.flow-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.flow-tab {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bone-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.flow-tab:hover {
  background: var(--line-soft);
  color: var(--ink);
}
.flow-tab.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.flow-canvas {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flow-group {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-direction: column;
}
@media (min-width: 900px) {
  .flow-group {
    flex-direction: row;
    gap: 0.5rem;
  }
}
.flow-group.active {
  display: flex;
  animation: flowFadeIn 0.5s var(--ease) forwards;
}
@keyframes flowFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.flow-node {
  flex: 1;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: all 0.4s var(--ease);
  width: 100%;
}
@media (min-width: 900px) {
  .flow-node {
    width: auto;
  }
}
.flow-node:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.node-badge {
  position: absolute;
  top: -9px;
  left: 15px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--bone);
  padding: 2px 8px;
  border-radius: 100px;
}
.flow-node--ai .node-badge {
  background: var(--accent);
  color: var(--ink);
}
.node-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-info h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--ink);
}
.node-info p {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.flow-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.55;
  animation: pulseArrow 2s infinite ease-in-out;
}
@keyframes pulseArrow {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.15); }
}
@media (max-width: 899px) {
  .flow-arrow {
    transform: rotate(90deg);
    margin-block: 0.2rem;
    animation: pulseArrowVert 2s infinite ease-in-out;
  }
}
@keyframes pulseArrowVert {
  0%, 100% { opacity: 0.3; transform: rotate(90deg) scale(0.9); }
  50% { opacity: 0.8; transform: rotate(90deg) scale(1.15); }
}

/* ---------- PARALLAX IMAGE BANNER ---------- */
.parallax-banner {
  position: relative;
  height: 40vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: clamp(4rem, 8vw, 6rem);
  border-radius: 24px;
  border: 1px solid var(--line);
}
.parallax-bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,17,22,0.35), rgba(14,17,22,0.65));
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.parallax-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
  border: none;
  padding: 0;
}

/* ---------- ROI CALCULATOR ---------- */
.roi-section {
  padding-bottom: clamp(4rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
.roi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .roi-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.roi-section__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-block: 0.5rem 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.roi-section__desc {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 2.5rem;
}
.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
.roi-slider-value {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--bone);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent);
}
.roi-card {
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}
.roi-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.roi-stat-box:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.roi-stat-box h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.roi-stat {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.roi-stat--accent {
  color: var(--accent);
}

/* ---------- SOFTWARE CAPABILITIES ---------- */
.soft-capabilities {
  padding-block: clamp(4rem, 10vw, 8rem);
  background: var(--line-soft); /* subtle tint overlay background */
  border-top: 1px solid var(--line);
}
.capabilities-header {
  text-align: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.capabilities-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-block: 0.5rem 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.capabilities-desc {
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-2);
  max-width: 600px;
  margin-inline: auto;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.cap-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}
.cap-card__visual {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cap-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cap-card:hover .cap-card__img {
  transform: scale(1.05);
}
.cap-card__content {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cap-card__content h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cap-card__content p {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}
