/* =========================================================
   Ricardo Cavallini — Portfólio
   ========================================================= */
:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --surface: #151923;
  --surface-2: #1b2030;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --dim: #6b7487;
  --accent: #c6f432;
  --accent-ink: #0b0d12;
  --accent-2: #5ee6ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; border-radius: 50%;
  top: -450px; right: -250px;
  background: radial-gradient(circle, rgba(198, 244, 50, .13), transparent 60%);
  filter: blur(20px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(198, 244, 50, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(198, 244, 50, .7); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { padding: .7em 1.15em; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 18, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; }
.logo__mark { width: 34px; height: 34px; flex: none; color: var(--text); transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.06); }
.logo__text { font-size: 17px; line-height: 1.1; display: flex; flex-direction: column; }
.logo__text small { font: 500 10px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 72px); }
.hero > .container { position: relative; z-index: 1; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
.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; }
.rotator { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.rotator.is-out { opacity: 0; transform: translateY(-.25em); filter: blur(4px); }
.rotator.is-in { opacity: 0; transform: translateY(.25em); filter: blur(4px); transition: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 88px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 13px var(--font-mono); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.eyebrow--photo {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0;
  white-space: nowrap; color: var(--text); border-color: rgba(255, 255, 255, .16);
  background: rgba(11, 13, 18, .7); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.eyebrow--photo:hover { border-color: var(--accent); background: rgba(11, 13, 18, .85); transform: translateX(-50%) translateY(-2px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 244, 50, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 244, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); } }
.hero__title { font-size: clamp(44px, 7vw, 88px); font-weight: 700; margin: 0 0 24px; letter-spacing: -.035em; }
.hl {
  position: relative; white-space: nowrap;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font: 700 34px/1 var(--font-display); letter-spacing: -.03em; }
.hero__stats span { color: var(--dim); font-size: 14px; margin-top: 6px; }

.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); }
.portrait { position: relative; aspect-ratio: 1; border-radius: 32px; }
.portrait img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  border-radius: 32px; filter: saturate(1.02) contrast(1.03);
  box-shadow: var(--shadow);
}
.portrait__ring {
  position: absolute; inset: -10px; border-radius: 40px; z-index: 0;
  background: conic-gradient(from var(--a), var(--accent), transparent 30%, var(--accent-2) 55%, transparent 80%, var(--accent));
  opacity: .7;
  animation: spin 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }


.chip {
  position: absolute; z-index: 2; padding: 9px 14px; border-radius: 999px;
  background: rgba(21, 25, 35, .88); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 13px var(--font-mono); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip--a { top: 8%; right: -36px; }
.chip--b { top: 42%; right: -54px; animation-delay: -2s; }
.chip--c { top: -18px; left: 18%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.marquee {
  position: relative; z-index: 1;
  border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 52px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font: 500 17px var(--font-mono); color: var(--dim); transition: color .2s; }
.marquee__track span:hover { color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 4.5vw, 52px); margin: 12px 0 16px; }
.section__head p:not(.kicker) { color: var(--muted); font-size: 18px; }
.kicker { font: 500 14px var(--font-mono); color: var(--accent); }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(21, 25, 35, .6));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 32px; position: relative; overflow: hidden; }
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 244, 50, .09), transparent 45%);
  pointer-events: none;
}
.service:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(198, 244, 50, .08); border: 1px solid rgba(198, 244, 50, .2);
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font: 500 12px var(--font-mono); color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); }

.anything {
  margin-top: 24px; padding: 32px 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px dashed rgba(198, 244, 50, .35);
  background: linear-gradient(90deg, rgba(198, 244, 50, .06), transparent);
}
.anything h3 { font-size: 22px; margin-bottom: 6px; }
.anything p { color: var(--muted); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; color: var(--muted); transition: all .25s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; text-align: left; padding: 0; width: 100%; }
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.project__cover {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.project__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.project:hover .project__cover img, .project:hover .mock { transform: scale(1.04); }
.project__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project__cat { font: 500 12px var(--font-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.project h3 { font-size: 20px; }
.project p { color: var(--muted); font-size: 15px; }
.project__more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.project__more::after { content: "→"; transition: transform .25s var(--ease); }
.project:hover .project__more::after { transform: translateX(4px); }

/* Mock covers (used until real screenshots are added) */
.mock { width: 100%; height: 100%; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .6s var(--ease); }
.mock__win { flex: 1; border-radius: 10px; background: rgba(11, 13, 18, .55); border: 1px solid rgba(255, 255, 255, .1); display: grid; grid-template-columns: 26% 1fr; overflow: hidden; }
.mock__side { border-right: 1px solid rgba(255, 255, 255, .08); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mock__side i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.mock__side i:first-child { background: var(--c, var(--accent)); width: 70%; }
.mock__main { padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 6px; }
.mock__main b { height: 28px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.mock__main b:first-child { background: color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }
.mock__main u { grid-column: 1 / -1; height: 44px; border-radius: 6px; text-decoration: none;
  background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--c, var(--accent)) 25%, transparent)),
              repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px); }
.mock--phone { align-items: center; justify-content: center; flex-direction: row; gap: 14px; }
.mock__phone { width: 30%; aspect-ratio: 9/18; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(11,13,18,.6); padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.mock__phone:nth-child(2) { transform: translateY(-10px); }
.mock__phone i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.mock__phone i:first-child { height: 30%; background: color-mix(in srgb, var(--c, var(--accent)) 35%, transparent); border-radius: 8px; }
.mock--api { font: 12px/1.7 var(--font-mono); color: var(--muted); justify-content: center; }
.mock--api span { display: block; white-space: nowrap; overflow: hidden; }
.mock--api em { font-style: normal; color: var(--c, var(--accent)); }

/* Modal */
.modal {
  width: min(760px, 100% - 32px); max-height: 88vh; padding: 0; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
}
.modal::backdrop { background: rgba(5, 6, 9, .7); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11,13,18,.7); }
.modal__close:hover { border-color: var(--text); }
.modal__cover { aspect-ratio: 16/10; display: grid; overflow: hidden; border-bottom: 1px solid var(--line); }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding: 30px 34px 36px; }
.modal__content h3 { font-size: 30px; margin: 8px 0 14px; }
.modal__content p { color: var(--muted); }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; }
.modal__grid h4 { font: 500 13px var(--font-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.modal__grid ul.feat li { padding-left: 22px; position: relative; margin-bottom: 6px; color: var(--muted); font-size: 15px; }
.modal__grid ul.feat li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.modal__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line) 70%); }
.step { position: relative; padding-top: 76px; }
.step__n {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2);
  font: 600 17px var(--font-mono); color: var(--accent);
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo { position: relative; }
.about__photo img { border-radius: 28px; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; box-shadow: var(--shadow); }
.about__photo::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; z-index: -1;
  border-radius: 28px; border: 1px solid rgba(198, 244, 50, .4);
  background: repeating-linear-gradient(45deg, rgba(198,244,50,.08) 0 2px, transparent 2px 10px);
}
.about__text h2 { font-size: clamp(32px, 4.5vw, 52px); margin: 12px 0 22px; }
.about__text p:not(.kicker) { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; }
.values li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.values span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; margin-top: 1px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px;
  border-radius: 28px; border: 1px solid var(--line-2);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(198, 244, 50, .1), transparent 50%),
    radial-gradient(500px circle at 100% 100%, rgba(94, 230, 255, .07), transparent 50%),
    var(--surface);
}
.contact__info h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 16px; }
.contact__info > p:not(.kicker) { color: var(--muted); font-size: 17px; }
.contact__list { display: grid; gap: 12px; margin-top: 32px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(11, 13, 18, .4); transition: border-color .25s, transform .25s var(--ease);
}
.contact__item:hover { border-color: var(--accent); transform: translateX(4px); }
.contact__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.contact__icon svg { width: 20px; height: 20px; fill: var(--accent); }
.contact__icon svg.is-stroke { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.contact__item small { display: block; color: var(--dim); font-size: 12px; font-family: var(--font-mono); }
.contact__item strong { font-weight: 600; font-size: 15px; word-break: break-word; }

.form { display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.form label em { color: var(--dim); font-style: normal; font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(11, 13, 18, .6); color: var(--text); font: 15px var(--font-body);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.form select option { background: var(--surface); }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198, 244, 50, .12); }
.form .is-invalid { border-color: #ff6b6b; }
.form__note { font-size: 13px; color: var(--dim); text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--dim); font-size: 14px; }
.to-top { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: all .25s; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease), opacity .3s; opacity: 0; transform: scale(.6); pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .contact { padding: 40px; gap: 40px; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }
  .nav.menu-open { background: rgba(11, 13, 18, .97); }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__visual { width: min(340px, 100% - 60px); order: -1; }
  .chip--a { right: -24px; } .chip--b { right: -30px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { max-width: 360px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 84px 0; }
  .services, .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 28px; }
  .hero__cta .btn { flex: 1; }
  .anything { flex-direction: column; align-items: flex-start; padding: 28px; }
  .values { grid-template-columns: 1fr; }
  .contact { padding: 28px 20px; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__content { padding: 24px; }
  .logo__text { font-size: 15px; }
  .chip { display: none; }
  .hero__inner { gap: 48px; }
  .hero__visual { width: min(340px, 100%); }
  .hero__title { font-size: clamp(38px, 12vw, 56px); }
  .eyebrow--photo { bottom: 14px; font-size: 12px; padding: 7px 12px; }
  .hl { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
