/* ═══════════════════════════════════════════════════════════════
   hugorodrigues.dev — hand-built, no templates.
   Palette from the Aeonik moodboard: ink / gray / paper / white,
   plus one signal accent used with restraint.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-var-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg: #F5F4F2;
  --bg-2: #ECEBE7;
  --ink: #161616;
  --ink-soft: #4E4E4C;
  --gray: #757571;
  --line: rgba(22, 22, 22, .14);
  --dark: #0E0E0E;
  --dark-2: #181816;
  --paper: #F5F4F2;
  --line-inv: rgba(245, 244, 242, .16);
  --acc: #FF4E1A;
  --f-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
  --r: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--acc); color: #fff; }

.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: .06em; }
.i {
  width: .85em; height: .85em; display: inline-block; vertical-align: -.06em;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.dia {
  width: .42em; height: .42em; background: var(--acc); display: inline-block;
  transform: rotate(45deg); margin: 0 .6em; vertical-align: middle; border-radius: 2px;
}
.acc { color: var(--acc); }
.acc-bg { background: var(--acc); }
.acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); display: inline-block; flex: none; }

.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;
}
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  transition: top .3s;
}
.skip:focus-visible { top: 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ── Grain ─────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-3%, -5%); }
  30% { transform: translate(4%, 2%); } 50% { transform: translate(-4%, 6%); }
  70% { transform: translate(5%, -3%); } 90% { transform: translate(-2%, 4%); }
}

/* ── Cursor ────────────────────────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; mix-blend-mode: difference; }
  html.js body, html.js a, html.js button { cursor: none; }
  .cursor__dot {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: #fff; transform: translate(-50%, -50%);
  }
  .cursor__ring {
    position: absolute; width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid #fff; transform: translate(-50%, -50%);
    transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
  }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; opacity: .9; }
  .cursor.is-down .cursor__ring { width: 28px; height: 28px; }
}

/* ── Wipe (language / route transitions) ───────────────────── */
.wipe { position: fixed; inset: 0; z-index: 260; pointer-events: none; display: flex; }
.wipe span { flex: 1; background: var(--dark); transform: scaleY(0); transform-origin: bottom; }
.wipe.is-on { pointer-events: all; }

/* ── Preloader ─────────────────────────────────────────────── */
.preloader { display: none; }
html.js .preloader {
  display: block; position: fixed; inset: 0; z-index: 240;
  background: var(--dark); color: var(--paper);
}
.preloader__tag {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .18em; color: rgba(245,244,242,.5);
  white-space: nowrap;
}
.preloader__word {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-weight: 600; font-size: clamp(64px, 14vw, 180px); letter-spacing: -.03em;
  display: flex; overflow: hidden;
}
.preloader__word span { display: inline-block; transform: translateY(110%); }
.preloader__count {
  position: absolute; right: var(--pad); bottom: 24px;
  font-size: clamp(40px, 8vw, 96px); color: rgba(245,244,242,.85);
}
.preloader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: rgba(245,244,242,.12);
}
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--acc); }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  mix-blend-mode: difference; color: #fff;
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-size: 15px; position: relative; opacity: .85; transition: opacity .25s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__lang { font-size: 12px; letter-spacing: .14em; padding: 6px 2px; opacity: .85; }
.nav__lang:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav__cta {
  display: inline-flex; align-items: center;
  border: 1.5px solid #fff; border-radius: 999px;
  padding: 10px 22px; font-size: 15px; font-weight: 500;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: #fff; color: #000; }
.nav__cta .i { margin-left: 8px; width: .78em; height: .78em; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger i {
  position: absolute; left: 8px; right: 8px; height: 2px; background: #fff;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__burger i:first-child { top: 15px; }
.nav__burger i:last-child { top: 24px; }
.nav__burger.is-open i:first-child { top: 19px; transform: rotate(45deg); }
.nav__burger.is-open i:last-child { top: 19px; transform: rotate(-45deg); }

/* ── Mobile menu ───────────────────────────────────────────── */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--dark); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8vh;
  padding: var(--pad); clip-path: inset(0 0 100% 0);
  visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: 10px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(38px, 9vw, 64px); font-weight: 600; letter-spacing: -.02em;
  transform: translateY(40px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu__links .mono { font-size: 14px; color: var(--acc); }
.menu__foot { display: flex; gap: 28px; font-size: 13px; color: rgba(245,244,242,.6); flex-wrap: wrap; }

/* ── Sections base ─────────────────────────────────────────── */
.section { padding: clamp(90px, 14vh, 160px) var(--pad); position: relative; }
.section--dark { background: var(--dark); color: var(--paper); border-radius: 34px 34px 0 0; }
.section--dark + .section--dark { border-radius: 0; }
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; color: var(--gray);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.section--dark .label { color: rgba(245,244,242,.55); }
.tick { width: 26px; height: 3px; display: inline-block; }
.h2 {
  font-size: clamp(34px, 5.4vw, 72px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.02; max-width: 18ch;
}

/* split helpers (JS wraps words/chars) */
.split-words .w, .split-chars .c { display: inline-block; will-change: transform; }
.split-words .w-wrap, .split-chars .c-wrap { display: inline-block; overflow: hidden; vertical-align: top; }
.split-chars .cw { display: inline-block; white-space: nowrap; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 4vh) var(--pad) 10vh;
  overflow: clip;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; color: var(--ink-soft);
  margin-bottom: 3vh; position: relative; z-index: 3;
}
.hero__title { position: relative; z-index: 3; line-height: .92; }
.hero__hello {
  display: inline-block;
  font-size: clamp(88px, 17vw, 240px);
  font-weight: 600; letter-spacing: -.045em;
}
.hero__sub {
  position: relative; z-index: 3;
  margin-top: 3.2vh; max-width: 22ch;
  font-size: clamp(22px, 2.6vw, 36px); font-weight: 500;
  letter-spacing: -.015em; line-height: 1.22; color: var(--ink-soft);
}
.hero__stats { display: flex; gap: clamp(28px, 5vw, 72px); margin-top: 5.5vh; position: relative; z-index: 3; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(34px, 4.4vw, 58px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat__num::before { content: '+0'; display: none; }
.stat .mono { font-size: 11px; letter-spacing: .16em; color: var(--gray); }
.hero__scroll {
  position: absolute; left: var(--pad); bottom: 26px; z-index: 3;
  font-size: 11px; letter-spacing: .22em; color: var(--gray);
}
.hero__photo {
  position: absolute; right: -4vw; bottom: 0; z-index: 2;
  width: clamp(340px, 56vw, 980px); pointer-events: none;
}
.hero__photo img, .hero__photo picture { width: 100%; height: auto; }
.hero__photo img {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  mask-composite: intersect;
  filter: contrast(1.02);
}
.hero__ghost {
  position: absolute; bottom: 4vh; left: 0; z-index: 1;
  font-size: clamp(120px, 22vw, 340px); font-weight: 700; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(22,22,22,.10);
  white-space: nowrap; pointer-events: none; line-height: 1;
}
.hero__side {
  position: absolute; right: 18px; top: 50%; z-index: 3;
  transform: rotate(90deg) translateX(-50%); transform-origin: right top;
  font-size: 10px; letter-spacing: .3em; color: var(--gray); white-space: nowrap;
}

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  background: var(--dark); color: var(--paper);
  padding: 22px 0; overflow: clip; position: relative; z-index: 4;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-size: clamp(18px, 2.4vw, 30px); font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; padding-right: 12px;
}
.marquee__track .acc { font-style: normal; font-size: .7em; vertical-align: middle; }

/* ── About ─────────────────────────────────────────────────── */
.about__statement {
  font-size: clamp(34px, 5.6vw, 76px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.04; max-width: 20ch;
  margin-bottom: clamp(48px, 9vh, 110px);
}
.about__grid {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(36px, 6vw, 100px); align-items: start;
}
.about__photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  transform: rotate(-2deg);
}
.about__photo img { filter: grayscale(1) contrast(1.03); transition: filter .7s var(--ease), transform .7s var(--ease); }
.about__photo:hover img { filter: grayscale(0); transform: scale(1.03); }
.about__photo figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 10px; letter-spacing: .2em; color: #fff;
  background: rgba(14,14,14,.72); padding: 8px 12px; border-radius: 999px;
}
.about__text { display: flex; flex-direction: column; gap: 26px; max-width: 620px; }
.about__text p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.about__text b { color: var(--ink); font-weight: 600; }
.about__counters {
  display: flex; gap: clamp(28px, 4vw, 64px); margin-top: 14px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.counter b { font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1.1; }
.counter .mono { font-size: 10px; letter-spacing: .18em; color: var(--gray); }

/* ── Work / sticky cards ───────────────────────────────────── */
.work { background: var(--bg-2); border-radius: 34px 34px 0 0; }
.work__head { margin-bottom: clamp(40px, 8vh, 90px); position: relative; }
.work__note { position: absolute; right: 0; bottom: 6px; font-size: 10px; letter-spacing: .2em; color: var(--gray); }
.work__stack { display: flex; flex-direction: column; gap: 5vh; }
.card {
  --stick: calc(var(--nav-h) + 14px);
  position: sticky; top: var(--stick);
  display: grid; grid-template-columns: 1fr 1.1fr;
  min-height: min(78vh, 720px);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(14,14,14,.25);
  will-change: transform;
}
.card:nth-child(2) { top: calc(var(--stick) + 16px); }
.card:nth-child(3) { top: calc(var(--stick) + 32px); }
.card:nth-child(4) { top: calc(var(--stick) + 48px); }
.card--light { background: #fff; color: var(--ink); }
.card--dark { background: var(--dark-2); color: var(--paper); }
.card__info {
  padding: clamp(28px, 4.5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.card__idx { font-size: 12px; letter-spacing: .18em; color: var(--card-acc); }
.card__idx span { opacity: .5; color: inherit; }
.card__title { font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.card__desc { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; opacity: .72; max-width: 44ch; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card__tags li {
  font-size: 10px; letter-spacing: .14em; padding: 7px 12px;
  border: 1px solid currentColor; border-radius: 999px; opacity: .55;
}
.card__link {
  margin-top: auto; padding-top: 22px;
  font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.01em;
  position: relative; display: inline-block;
}
.card__link::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--card-acc); transform: scaleX(.35); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card__link:hover::after { transform: scaleX(1); }
.card__link .i { margin-left: 7px; color: var(--card-acc); }
.card__visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 3vw, 48px);
  background:
    radial-gradient(120% 120% at 80% 20%, color-mix(in srgb, var(--card-acc) 14%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(127,127,127,.07) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(127,127,127,.07) 46px 47px);
}
.card--dark .card__visual { background:
    radial-gradient(120% 120% at 80% 20%, color-mix(in srgb, var(--card-acc) 20%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(245,244,242,.05) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(245,244,242,.05) 46px 47px);
}

/* browser shot */
.shot {
  width: min(100%, 460px); background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(14,14,14,.35);
  border: 1px solid rgba(22,22,22,.08);
}
.shot--dark { background: #1E1E1C; border-color: rgba(245,244,242,.1); color: var(--paper); }
.shot__bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  border-bottom: 1px solid rgba(127,127,127,.15);
}
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(127,127,127,.3); }
.shot__bar i:first-child { background: var(--card-acc); }
.shot__bar .mono { margin-left: 10px; font-size: 10px; opacity: .55; letter-spacing: .08em; }
.shot__body { padding: 18px; }

/* telepecas mock */
.tp-search {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid rgba(22,22,22,.16); border-radius: 10px;
  padding: 12px 14px; font-size: 10px; color: var(--gray); letter-spacing: .1em;
}
.tp-search b { color: var(--card-acc); font-size: 15px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tp-item {
  border: 1px solid rgba(22,22,22,.1); border-radius: 10px; padding: 10px;
  display: grid; grid-template-columns: 34px 1fr; grid-auto-rows: min-content;
  gap: 5px 10px; align-items: center;
}
.tp-thumb {
  grid-row: span 3; width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-acc) 35%, #eee), #e8e6e2);
}
.tp-item em { height: 7px; border-radius: 4px; background: rgba(22,22,22,.16); }
.tp-item em.short { width: 60%; }
.tp-item b { font-size: 11px; color: var(--card-acc); }

/* tp.software dashboard mock */
.shot__body--dash { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.tps-side { display: flex; flex-direction: column; gap: 12px; align-items: center; padding-top: 4px; }
.tps-side b { width: 12px; height: 12px; border-radius: 4px; }
.tps-side i { width: 18px; height: 4px; border-radius: 2px; background: rgba(245,244,242,.22); }
.tps-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tps-tile {
  border: 1px solid rgba(245,244,242,.14); border-radius: 10px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.tps-tile .mono { font-size: 8px; opacity: .5; letter-spacing: .14em; }
.tps-tile b { font-size: 14px; font-weight: 600; }
.tps-tile--acc { border-color: var(--card-acc); }
.tps-tile--acc b { color: var(--card-acc); }
.tps-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tps-rows i { height: 26px; border-radius: 8px; background: rgba(245,244,242,.07); }

/* greenparts scan mock */
.gp-scan { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.gp-box {
  position: relative; aspect-ratio: 1; border-radius: 10px;
  background: linear-gradient(135deg, #EEEDEA, #DDDBD6);
  overflow: hidden;
}
.gp-box b { position: absolute; width: 14px; height: 14px; border: 2.5px solid var(--card-acc); }
.gp-box b:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.gp-box b:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.gp-box b:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.gp-box b:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.gp-line {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 20%;
  background: var(--card-acc); box-shadow: 0 0 14px var(--card-acc);
  animation: gp-scan 2.4s ease-in-out infinite alternate;
}
@keyframes gp-scan { from { top: 14%; } to { top: 84%; } }
.gp-out { display: flex; flex-direction: column; gap: 10px; }
.gp-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(22,22,22,.12); border-radius: 999px;
  padding: 9px 12px; font-size: 9px; letter-spacing: .1em;
}
.gp-chip .acc-dot { background: var(--card-acc); }
.gp-chip b { margin-left: auto; color: var(--card-acc); font-size: 11px; }

/* myrestaurant phone mock */
.phone {
  width: min(64%, 250px); background: #FBFAF8; color: var(--ink);
  border-radius: 30px; padding: 18px 16px 16px; position: relative;
  border: 1px solid rgba(22,22,22,.1);
  box-shadow: 0 24px 60px -18px rgba(14,14,14,.5);
}
.phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 8px; border-radius: 999px; background: rgba(22,22,22,.14);
}
.phone__head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 12px; }
.phone__head b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.phone__head .mono { font-size: 9px; color: var(--card-acc); display: inline-flex; align-items: center; gap: 5px; }
.phone__cta .i { margin-left: 7px; }
.phone__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 2px; border-top: 1px solid rgba(22,22,22,.08); font-size: 12px;
}
.phone__item b { color: var(--gray); font-size: 11px; }
.phone__cta {
  margin-top: 12px; background: var(--card-acc); color: #fff;
  border-radius: 12px; text-align: center; padding: 12px;
  font-size: 11px; letter-spacing: .16em; font-weight: 600;
}

/* ── Capabilities ──────────────────────────────────────────── */
.caps__list { border-top: 1px solid var(--line-inv); margin-top: clamp(36px, 6vh, 70px); }
.cap {
  position: relative;
  display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: baseline;
  padding: clamp(26px, 4vh, 44px) 8px;
  border-bottom: 1px solid var(--line-inv);
  transition: background .4s, padding .4s var(--ease);
  overflow: clip;
}
.cap:hover { background: rgba(245,244,242,.035); padding-left: 22px; }
.cap__idx { grid-column: 1; grid-row: 1; font-size: 12px; color: var(--acc); }
.cap__name {
  grid-column: 2; grid-row: 1;
  font-size: clamp(24px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em;
  transition: transform .45s var(--ease);
}
.cap:hover .cap__name { transform: translateX(10px); }
.cap__desc {
  grid-column: 2; grid-row: 2; max-width: 52ch; font-size: 15px; line-height: 1.55;
  color: rgba(245,244,242,.55);
}
.cap__arrow {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  font-size: 26px; opacity: .25;
  transition: opacity .35s, transform .45s var(--ease);
}
.cap__arrow .i { width: 26px; height: 26px; stroke-width: 2; }
.cap:hover .cap__arrow { opacity: 1; transform: translate(6px, -6px); color: var(--acc); }
.cap::after {
  content: attr(data-ghost);
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  font-size: clamp(70px, 10vw, 150px); font-weight: 700; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px rgba(245,244,242,.12);
  pointer-events: none; opacity: 0; transition: opacity .5s, transform .6s var(--ease);
}
.cap:hover::after { opacity: 1; transform: translateY(-50%) translateX(-14px); }

/* ── Method ────────────────────────────────────────────────── */
.method { background: var(--bg); }
.method__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.step { border-left: 1.5px solid var(--line); padding-left: 20px; }
.step .mono { color: var(--acc); font-size: 13px; }
.step h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; margin: 12px 0 8px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--gray); }

/* ── Contact ───────────────────────────────────────────────── */
.contact { padding-bottom: clamp(60px, 10vh, 120px); }
.contact__title {
  font-size: clamp(48px, 9.2vw, 138px); font-weight: 600;
  letter-spacing: -.04em; line-height: 1.02; margin-bottom: 4vh;
}
.contact__title-em { font-style: italic; font-weight: 500; }
.contact__sub { max-width: 46ch; font-size: clamp(16px, 1.5vw, 20px); color: rgba(245,244,242,.6); margin-bottom: 6vh; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 8vh; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 20px 34px;
  font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.01em;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden;
}
.btn--ghost { border: 1.5px solid rgba(245,244,242,.4); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--acc { background: var(--acc); color: #fff; }
.btn--acc:hover { background: #fff; color: var(--ink); }
.btn .i { margin-left: 9px; }
.btn__done {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--acc); color: #fff; font-size: 13px; letter-spacing: .16em;
  transform: translateY(101%); transition: transform .4s var(--ease);
}
.btn.is-copied .btn__done { transform: none; }
.contact__socials { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px); font-size: 12px; letter-spacing: .16em; }
.contact__socials a { color: rgba(245,244,242,.6); transition: color .3s; }
.contact__socials a:hover { color: var(--acc); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(245,244,242,.5);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 26px var(--pad); font-size: 11px; letter-spacing: .14em;
  border-top: 1px solid var(--line-inv); flex-wrap: wrap;
}
.footer__top { color: inherit; letter-spacing: .14em; font-size: 11px; transition: color .3s; }
.footer__top:hover { color: var(--paper); }

/* ── Reveal helpers (JS-driven, safe without JS) ───────────── */
html.js .fade-up { opacity: 0; transform: translateY(36px); }
html.js .reveal-line .tick { transform: scaleX(0); transform-origin: left; }
html:not(.js) .preloader, html:not(.js) .cursor { display: none !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card__visual { min-height: 320px; order: -1; }
  .cap::after { display: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__photo {
    position: relative; right: auto; margin: 6vh calc(var(--pad) * -1) 0;
    width: calc(100% + var(--pad) * 2); order: 10;
  }
  .hero { padding-bottom: 0; }
  .hero__scroll { display: none; }
  .hero__ghost { display: none; }
  .hero__side { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 380px; }
  .method__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .work__note { display: none; }
  .cap { grid-template-columns: 40px 1fr auto; }
}
@media (max-width: 560px) {
  .method__grid { grid-template-columns: 1fr; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn--ghost .btn__label { font-size: 13.5px; }
  .footer { justify-content: center; text-align: center; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  html.js .fade-up { opacity: 1; transform: none; }
  html.js .reveal-line .tick { transform: none; }
  .grain { display: none; }
}

/* ═══════════════ SUBPAGES (casos de estudo + insights) ═══════════════ */
.page { padding: calc(var(--nav-h) + 6vh) var(--pad) 0; max-width: 1200px; margin: 0 auto; }
.breadcrumb { font-size: 11px; letter-spacing: .14em; color: var(--gray); margin-bottom: 4vh; display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--ink); }
.page__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; color: var(--gray); margin-bottom: 20px; }
.page__title { font-size: clamp(44px, 8vw, 110px); font-weight: 600; letter-spacing: -.035em; line-height: .98; margin-bottom: 3vh; }
.page__title .acc { font-style: normal; }
.lead { font-size: clamp(19px, 2vw, 26px); line-height: 1.45; color: var(--ink-soft); max-width: 30ch; font-weight: 500; letter-spacing: -.01em; }
.page__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4vh 0 0; }
.page__meta .card__tags { margin: 0; }
.page__meta .card__tags li { opacity: .8; border-color: var(--line); }
.page__visit { font-weight: 600; font-size: 16px; margin-left: auto; border-bottom: 2px solid var(--acc); padding-bottom: 2px; }
.page__section { margin: clamp(56px, 10vh, 110px) 0; }
.page__section .label { margin-bottom: 24px; }
.prose { max-width: 68ch; }
.prose p { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.2em; }
.prose b, .prose strong { color: var(--ink); }
.prose h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; margin: 1.8em 0 .6em; }
.prose ul { margin: 0 0 1.2em 1.1em; }
.prose li { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--ink-soft); margin-bottom: .5em; }
.prose a { border-bottom: 1.5px solid var(--acc); }
.prose a:hover { color: var(--acc); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px;
}
.feat b { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; display: block; line-height: 1.1; }
.feat b .acc { font-size: .6em; vertical-align: .3em; }
.feat span { font-size: 12.5px; color: var(--gray); line-height: 1.5; display: block; margin-top: 8px; }
.cta-box {
  background: var(--dark); color: var(--paper); border-radius: var(--r);
  padding: clamp(36px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; justify-content: space-between;
  margin: clamp(56px, 10vh, 110px) 0 clamp(40px, 8vh, 90px);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.025em; max-width: 18ch; }
.cta-box .btn--acc { flex: none; }
/* artigo */
.article-meta { display: flex; gap: 18px; font-size: 11px; letter-spacing: .14em; color: var(--gray); margin: 2vh 0 5vh; }
.insight-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 4vh; }
.insight-item { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; padding: 30px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding-left .4s var(--ease); }
.insight-item:hover { background: #fff; padding-left: 20px; }
.insight-item h2 { font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.insight-item p { grid-column: 2; font-size: 15px; color: var(--gray); max-width: 60ch; }
.insight-item .mono { font-size: 11px; color: var(--acc); }
/* FAQ (homepage) */
.faq__list { max-width: 860px; border-top: 1px solid var(--line); margin-top: 4vh; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 26px 8px; font-size: clamp(17px, 1.8vw, 23px); font-weight: 600; letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--acc); transition: transform .3s var(--ease); flex: none; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 8px 26px; max-width: 62ch; color: var(--ink-soft); line-height: 1.65; font-size: 16px; }
/* link caso de estudo nos cards */
.card__case { font-size: 11px; letter-spacing: .16em; color: inherit; opacity: .6; transition: opacity .3s, color .3s; margin-top: 2px; }
.card__case:hover { opacity: 1; color: var(--card-acc); }
@media (max-width: 700px) {
  .page__visit { margin-left: 0; }
  .cta-box .btn { width: 100%; }
}
@media (max-width: 900px) {
  .nav--page .nav__links { display: flex; gap: 16px; }
  .nav--page .nav__links a { font-size: 13px; }
}

/* ═══════════════ INVESTIGAÇÃO (afiliação académica) ═══════════════ */
.research { background: var(--bg); }
.research__card {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: clamp(28px, 4.5vw, 60px);
  display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.research__id { display: flex; flex-direction: column; gap: 14px; }
.research__logo {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.research__logo em { font-style: normal; color: var(--acc); }
.research__inst { font-size: 13px; line-height: 1.5; color: var(--gray); }
.research__role {
  border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px;
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
}
.research__role span { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; color: var(--acc); margin-bottom: 8px; }
.research__link { font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--acc); padding-bottom: 2px; align-self: flex-start; }
.research__body p { font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.65; color: var(--ink-soft); margin-bottom: 22px; max-width: 56ch; }
.research__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.field {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--gray);
}
.field--on { border-color: var(--acc); color: var(--ink); font-weight: 500; }
.field--on i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); display: inline-block; margin-right: 7px; vertical-align: 1px; }
@media (max-width: 860px) { .research__card { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .nav__links { gap: 22px; } .nav__links a { font-size: 14px; } }
@media (max-width: 1000px) and (min-width: 901px) { .nav__links { gap: 16px; } .nav__links a { font-size: 13px; } }
