/* ============================================================
   CREBOS.COM v3 — matches crebos.online
   Black base · orange #ED6F00 · General Sans · perspective grid.
   ============================================================ */

:root {
  --bg:      #0C0E12;
  --bg-2:    #101318;
  --panel:   rgba(255,255,255,0.03);
  --line:    rgba(255,255,255,0.08);
  --line-2:  rgba(255,255,255,0.15);
  --text:    #F4F5F7;
  --muted:   #9BA1AD;
  --muted-2: #656C7A;
  --orange:  #ED6F00;
  --orange-2:#FF8A2B;

  --font: "General Sans", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 44px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.loading { overflow: hidden; height: 100vh; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--orange); color: #0C0E12; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--orange); color: #0C0E12; padding: 10px 16px; font-family: var(--mono); }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; gap: 22px; align-content: center; }
.loader__logo { color: #fff; opacity: 0; animation: logofade 1.6s var(--ease) infinite alternate; }
@keyframes logofade { from { opacity: .3; } to { opacity: 1; } }
.loader__bar { width: min(220px, 60vw); height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.loader__count { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.2em; }
.loader.done { opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; border-radius: 50%; }
.cursor { width: 6px; height: 6px; background: var(--orange); transform: translate(-50%,-50%); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(237,111,0,0.6); transform: translate(-50%,-50%); transition: width .3s, height .3s, background .3s; }
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(237,111,0,0.08); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Type helpers ---------- */
.eyebrow, .hero__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 10px; }
.tick { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.acc { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn { --p: 13px 24px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: 15px; padding: var(--p); border-radius: 8px; border: 1px solid transparent; cursor: pointer; position: relative; transition: transform .35s var(--ease), box-shadow .4s, background .3s, color .3s, border-color .3s; white-space: nowrap; }
.btn--lg { --p: 16px 30px; }
.btn--full { width: 100%; justify-content: center; }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--solid { background: var(--orange); color: #120A02; box-shadow: 0 8px 30px -12px rgba(237,111,0,.7); }
.btn--solid:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255,138,43,.8); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; transition: background .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12,14,18,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-105%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { color: #fff; display: inline-flex; align-items: center; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 14.5px; color: var(--muted); transition: color .25s; position: relative; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0; background: var(--orange); transition: width .3s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* ---------- Hero (centered, perspective grid) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 0 60px; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(237,111,0,0.5), rgba(237,111,0,0.08) 42%, transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(12,14,18,0.2) 60%, rgba(12,14,18,0.85) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__eyebrow { opacity: 0; justify-content: center; }
.hero__title { font-family: var(--font); font-weight: 600; font-size: clamp(2.7rem, 8vw, 5.8rem); line-height: 1.02; letter-spacing: -0.03em; margin: 22px 0 0; }
.hero__title .l { display: block; overflow: hidden; }
.hero__title .w { display: inline-block; transform: translateY(115%); }
.hero__lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 26px auto 0; opacity: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; opacity: 0; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 1px; height: 46px; overflow: hidden; z-index: 2; }
.hero__scroll span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--orange), transparent); animation: scdot 2s var(--ease) infinite; }
@keyframes scdot { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Trust ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); padding: 40px 0; }
.trust__label { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 5vw, 56px); }
.trust__row span { font-family: var(--mono); font-size: clamp(13px, 2vw, 16px); letter-spacing: 0.1em; color: var(--muted-2); transition: color .3s; }
.trust__row span:hover { color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.shead { max-width: 760px; margin-bottom: clamp(44px, 6vw, 70px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead__title { font-family: var(--font); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 16px; }
.shead__sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }

/* ---------- Work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wcard { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; transition: border-color .4s, transform .35s var(--ease); }
.wcard:hover { border-color: var(--orange); transform: translateY(-5px); }
.wcard__metric { font-family: var(--font); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.2rem); letter-spacing: -0.03em; color: var(--orange); line-height: 1; }
.wcard__metric em { font-style: normal; font-size: 0.5em; color: var(--muted); }
.wcard__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.wcard h3 { font-family: var(--font); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.015em; margin-top: 4px; }
.wcard p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Services ---------- */
.svc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc { padding: 34px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; transition: background .35s; position: relative; }
.svc::before { content:""; position:absolute; left:0; top:0; bottom:0; width:2px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.svc:hover { background: var(--bg-2); }
.svc:hover::before { transform: scaleY(1); }
.svc__n { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.svc h3 { font-family: var(--font); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.svc p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Method ---------- */
.method { background: var(--bg-2); border-block: 1px solid var(--line); }
.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.method__lead { position: sticky; top: 110px; }
.method__sub { color: var(--muted); font-size: 1.1rem; margin: 20px 0 28px; }
.method__list { list-style: none; display: grid; gap: 14px; }
.method__list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .4s, transform .4s var(--ease); }
.method__list li:hover { border-color: var(--line-2); transform: translateX(6px); }
.method__n { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.method__list h3 { font-family: var(--font); font-weight: 600; font-size: 1.2rem; }
.method__list p { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

/* ---------- Statement ---------- */
.statement { padding: clamp(90px, 14vw, 170px) 0; text-align: center; }
.statement__text { font-family: var(--font); font-weight: 600; font-size: clamp(1.7rem, 5vw, 3.3rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 1000px; margin: 0 auto; }
.statement__text .word { display: inline-block; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__sub { color: var(--muted); font-size: 1.1rem; margin-top: 20px; }
.contact__meta { margin-top: 36px; display: grid; gap: 2px; }
.contact__meta a { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; transition: color .3s; }
.contact__meta a:last-child { border-bottom: 1px solid var(--line); }
.contact__meta a:hover { color: var(--orange); }
.contact__meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.cform { display: grid; gap: 20px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.cform__field { position: relative; }
.cform__field input, .cform__field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 20px 15px 8px; color: var(--text); font-family: var(--font); font-size: 15px; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.cform__field textarea { min-height: 110px; }
.cform__field label { position: absolute; left: 15px; top: 15px; font-size: 15px; color: var(--muted-2); pointer-events: none; transition: transform .25s var(--ease), color .25s; transform-origin: left; }
.cform__field input:focus, .cform__field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,111,0,0.15); }
.cform__field input:focus + label, .cform__field input:not(:placeholder-shown) + label,
.cform__field textarea:focus + label, .cform__field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.78); color: var(--orange); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.cform__note { font-family: var(--mono); font-size: 13px; min-height: 18px; color: var(--orange); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading .btn__label::after { content: "…"; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot .brand { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { color: var(--muted); font-size: 14px; transition: color .25s; }
.foot__links a:hover { color: var(--orange); }
.foot__legal { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted-2); font-size: 13px; font-family: var(--mono); }

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

/* ============================================================ RESPONSIVE */
@media (max-width: 940px) {
  .work__grid { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; }
  .method__grid { grid-template-columns: 1fr; }
  .method__lead { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__mobile { position: fixed; inset: 76px 0 auto 0; background: rgba(12,14,18,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); display: grid; gap: 4px; padding: 20px var(--pad) 28px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav.open .nav__mobile { transform: none; opacity: 1; pointer-events: auto; }
  .nav__mobile a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.15rem; }
  .nav__mobile a:last-child { border-bottom: none; color: var(--orange); }
  .cform { padding: 24px; }
}
@media (max-width: 400px) { :root { --pad: 18px; } .hero__title { font-size: 2.5rem; } }

@media (prefers-reduced-motion: reduce) {
  .loader__logo, .hero__scroll span, .tick { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__title .w { transform: none !important; }
  .hero__eyebrow, .hero__lede, .hero__actions { opacity: 1 !important; }
  * { transition-duration: 0.01ms !important; }
}
