/* ============================================
   GCeliz — Landing Page v2
   Tokens
   ============================================ */
:root {
  --bg: #0f0e0c;
  --bg-elev: #17150f;
  --bg-elev-2: #1d1a13;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --accent: #8cbe4d;
  --accent-deep: #4c6b2c;
  --accent-light: #d8f2b0;
  --accent-soft: rgba(140, 190, 77, 0.14);

  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.4);

  --display: "Bricolage Grotesque", "Sora", sans-serif;
  --sans: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --pad: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset
   ============================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, form { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
input, textarea, button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
section, header, footer { position: relative; }

h1, h2, h3 {
  font-family: "Montserrat", "Arial", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================
   Custom cursor
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 997;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  opacity: 0.6;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease, border-color 0.3s ease;
}
.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  opacity: 1;
  background: var(--accent-soft);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (min-width: 1px) {
  body { cursor: auto; }
}
@media (pointer: fine) {
  .has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button {
    cursor: none;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  --btnFg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.95rem 1.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  isolation: isolate;
}
.btn span { position: relative; z-index: 2; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: #0f1408;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
  z-index: 1;
}
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-text {
  padding: 0.95rem 0.25rem;
  color: var(--text-dim);
  position: relative;
}
.btn-text::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.7rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0.4;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}
.btn-text:hover { color: var(--text); }
.btn-text:hover::after { transform: scaleX(1); opacity: 1; }
.btn-block { width: 100%; }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 14, 12, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 60px; width: auto; }

.nav-links { display: flex; gap: 2.2rem; font-size: 0.94rem; color: var(--text-dim); }
.nav-links a { position: relative; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { font-size: 0.88rem; padding: 0.7rem 1.4rem; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 34px; height: 34px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--pad) 4.5rem;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.hero-video {
  position: absolute;
  inset: -2% -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 40%), rgba(216,242,176,0.14), transparent 60%);
  transition: opacity 0.3s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,14,12,0.25) 0%, rgba(15,14,12,0.55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15,14,12,0.55) 0%, transparent 45%);
}

.frame-marks { position: absolute; inset: clamp(1.2rem, 3vw, 2.4rem); pointer-events: none; z-index: 2; }
.fm { position: absolute; width: 22px; height: 22px; opacity: 0; transition: opacity 0.8s ease 1.1s; }
.fm::before, .fm::after { content: ""; position: absolute; background: var(--accent); }
.fm::before { width: 100%; height: 1.5px; }
.fm::after { width: 1.5px; height: 100%; }
.fm-tl { top: 0; left: 0; }
.fm-tr { top: 0; right: 0; }
.fm-bl { bottom: 0; left: 0; }
.fm-br { bottom: 0; right: 0; }
.frame-marks.in .fm { opacity: 0.7; }

.hero-content { position: relative; z-index: 2; max-width: 980px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--text);
}
.hero-title .ht-line { display: block; }
.hero-title .ht-line:last-child { color: var(--accent); }

.hero-foot {
  margin-top: 2.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.8rem;
}
.hero-sub {
  max-width: 38ch;
  font-size: 1.02rem;
  color: var(--text-dim);
}
.hero-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: none; }

/* ============================================
   Scramble text (JS toggles .is-done)
   ============================================ */
.hero-title .ht-line { opacity: 0; }
.hero-title.is-ready .ht-line { opacity: 1; }

/* ============================================
   Rotator statement
   ============================================ */
.statement {
  padding: 5.5rem var(--pad);
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.statement p {
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.rotator {
  display: block;
  position: relative;
  height: 1.15em;
  min-width: auto;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--accent);
  text-align: left;
}
.rotator-inner { position: relative; width: 100%; height: 100%; }
.rotator-word {
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s ease;
}
.rotator-word.is-active { transform: translateY(0); opacity: 1; }
.rotator-word.is-exit { transform: translateY(-110%); opacity: 0; }

/* ============================================
   Edges / diferenciales
   ============================================ */
.edges {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.edge {
  padding: 0 2.2rem;
  border-left: 1px solid var(--line);
}
.edge:first-child { padding-left: 0; border-left: none; }
.edge h3 { font-size: 1.1rem; margin-bottom: 0.7rem; font-weight: 600; }
.edge p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 860px) {
  .edges { grid-template-columns: 1fr; gap: 2.2rem; padding: 4rem var(--pad); }
  .edge { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .edge:first-child { border-top: none; padding-top: 0; }
}

/* ============================================
   Services — pinned scrollytelling
   ============================================ */
.services {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem var(--pad) 3rem;
  scroll-margin-top: 5rem;
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: 3rem;
}
.services-head h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.services-head p { color: var(--text-dim); max-width: 34ch; font-size: 1.02rem; }

.service-scroll {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.service-visual {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  height: 58vh;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem;
  overflow: hidden;
}
.visual-card { display: flex; flex-direction: column; gap: 1.6rem; }
.visual-icon {
  width: 60px; height: 60px;
  color: var(--accent);
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
}
.visual-icon svg { width: 100%; height: 100%; }
.visual-desc {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 32ch;
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
}
.visual-index {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--text-faint);
  display: flex;
  gap: 0.3rem;
}
.visual-index span { color: var(--accent); font-weight: 600; }
.visual-index i { font-style: normal; opacity: 0.5; }

.service-steps { display: flex; flex-direction: column; }
.step {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.step:last-child { border-bottom: none; }
.step.is-active { opacity: 1; }
.step-num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}

@media (max-width: 860px) {
  .service-scroll { grid-template-columns: 1fr; gap: 2rem; }
  .service-visual { position: relative; top: 0; height: auto; min-height: 0; }
  .step { min-height: 0; padding: 1.6rem 0; opacity: 1; }
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  padding: 6rem var(--pad);
  scroll-margin-top: 3rem;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--container);
  margin: 0 auto;
}
.contact-intro h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1.2rem; }
.contact-intro p { color: var(--text-dim); max-width: 40ch; font-size: 1.05rem; line-height: 1.6; }
.contact-mark { margin-top: 2.8rem; width: 60px; opacity: 0.9; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1rem 0.55rem;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field textarea { padding-top: 1.5rem; }
.field label {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-size: 1rem;
  color: var(--text-faint);
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s ease, top 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.55rem;
  font-size: 0.72rem;
  color: var(--accent);
}
.form-note { min-height: 1.2em; font-size: 0.92rem; color: var(--accent); }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .contact-mark { display: none; }
  .service-scroll {display: none;}
  .services {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--pad) 6rem;
  scroll-margin-top: 5rem;
}
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.2rem;
  margin-bottom: 0.5rem;
}
.services-head h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}
.services-head p {
  color: var(--text-dim);
  max-width: 34ch;
  font-size: 1.02rem;
}

.service-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.8rem;
  align-items: flex-start;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease), border-color 0.3s ease;
}
.service-item:hover {
  padding-left: 0.6rem;
  border-color: var(--line);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-item:hover .service-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.service-text h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.service-text p {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.65;
}
.service-list {display: block  !important;}

}
.service-list {display: none;}
/* ============================================
   Footer
   ============================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2.4rem var(--pad) 2.8rem;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.footer-mark { width: 20px; height: auto; opacity: 0.7; }
