/* TR Software — portfolio system 2026 */
:root {
  --bg: #080a0c;
  --bg-elevated: #0d1012;
  --surface: #111517;
  --surface-2: #171c1e;
  --text: #f2f4ed;
  --muted: #9da49e;
  --muted-2: #737a75;
  --line: #252b28;
  --line-bright: #3b443f;
  --primary: #c7ff3f;
  --primary-2: #e2ff97;
  --accent: #ff7048;
  --black: #080a0c;
  --shadow: 0 34px 90px rgba(0, 0, 0, .42);
  --radius: 22px;
  --container: 1280px;
}

html[data-theme="light"] {
  --bg: #edf0e9;
  --bg-elevated: #f5f7f1;
  --surface: #fafcf7;
  --surface-2: #e4e8df;
  --text: #111511;
  --muted: #59615b;
  --muted-2: #747d76;
  --line: #cfd5cc;
  --line-bright: #aeb7ad;
  --primary: #9ad600;
  --primary-2: #72a000;
  --accent: #e5522a;
  --shadow: 0 30px 80px rgba(30, 45, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 9%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 27%),
    radial-gradient(circle at 12% 36%, rgba(255, 112, 72, .055), transparent 24%);
}

::selection { background: var(--primary); color: var(--black); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
p { color: var(--muted); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.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-link { position: fixed; top: -100px; left: 24px; z-index: 1000; padding: 12px 16px; background: var(--primary); color: var(--black); }
.skip-link:focus { top: 20px; }
.ambient-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 62%);
}
.cursor-glow {
  position: fixed; top: -220px; left: -220px; z-index: -1; width: 440px; height: 440px;
  border-radius: 50%; pointer-events: none; opacity: .07; background: var(--primary); filter: blur(90px);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(140%);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo {
  width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
  border-radius: 50%; background: #0a0d0f;
}
.brand-logo img { width: 77%; height: 77%; object-fit: contain; }
.brand-copy { line-height: 1.1; }
.brand-copy strong { display: block; font-size: .92rem; letter-spacing: -.015em; }
.brand-copy small { display: block; margin-top: 5px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.brand > span:not(.brand-logo) strong { display: block; font-size: .92rem; }
.brand > span:not(.brand-logo) small { display: block; margin-top: 5px; color: var(--muted); font-size: .64rem; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 32px); }
.main-nav a { position: relative; color: var(--muted); font-size: .86rem; font-weight: 650; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-private { color: var(--muted-2); font-family: 'DM Mono', monospace; font-size: .71rem; text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; font-size: .9rem;
  transition: border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--line-bright); transform: rotate(12deg); }
.nav-toggle { display: none; color: var(--text); font-size: 1.2rem; }

/* Buttons and small UI */
.btn {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 21px;
  border: 1px solid transparent; border-radius: 999px; font-weight: 750; font-size: .9rem; letter-spacing: -.01em;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn span { font-size: 1.05em; }
.btn-sm { min-height: 42px; padding-inline: 17px; font-size: .8rem; }
.btn-full { width: 100%; }
.btn-primary { color: var(--black); background: var(--primary); box-shadow: 0 9px 30px rgba(199, 255, 63, .1); }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 12px 35px rgba(199, 255, 63, .18); }
.btn-secondary, .btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--line-bright); background: var(--surface); }
.btn-whatsapp { border-color: rgba(69, 217, 105, .42); color: #d9ffe2; background: rgba(37, 211, 102, .08); }
.btn-whatsapp:hover { border-color: #45d969; color: #07120a; background: #45d969; box-shadow: 0 12px 34px rgba(37, 211, 102, .17); }
html[data-theme="light"] .btn-whatsapp { color: #17632a; }
html[data-theme="light"] .btn-whatsapp:hover { color: #07120a; }
.btn-dark { color: #f4f6ef; background: #080a0c; }
.text-link { display: inline-flex; align-items: center; color: var(--text); font-weight: 750; border-bottom: 1px solid var(--line-bright); }
.text-link:hover { color: var(--primary); border-color: var(--primary); }
.mini-label, .section-index, .case-meta, .service-number, .service-stack, .solution-card > span, .availability, .workbench-head, .workbench-foot, .project-category, .campaign-kicker {
  font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .09em;
}

/* Hero */
.hero { min-height: calc(100vh - 82px); display: grid; align-items: center; padding: clamp(68px, 8vw, 120px) 0 86px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(440px, .96fr); align-items: center; gap: clamp(50px, 7vw, 110px); }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--muted); font-size: .69rem; }
.availability > span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(199, 255, 63, .09), 0 0 24px rgba(199, 255, 63, .5); animation: status-pulse 2s ease-in-out infinite; }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 9px rgba(199, 255, 63, 0), 0 0 32px rgba(199, 255, 63, .7); } }
.hero h1 { margin: 0; font-size: clamp(4rem, 7.4vw, 7.7rem); line-height: .86; letter-spacing: -.075em; font-weight: 800; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-lead { max-width: 690px; margin: 34px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.75; }
.hero-lead strong { color: var(--text); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: 4px; }
.hero-proof strong { font-size: .82rem; }
.hero-proof span { color: var(--muted-2); font-size: .68rem; line-height: 1.35; }

.hero-workbench { position: relative; border: 1px solid var(--line-bright); border-radius: 22px; background: var(--bg-elevated); box-shadow: var(--shadow); transform: rotate(1.2deg); transition: transform .35s ease; }
.hero-workbench:hover { transform: rotate(0); }
.workbench-head, .workbench-foot { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; color: var(--muted-2); font-size: .62rem; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-bright); }
.build-status { display: flex; align-items: center; gap: 6px; color: var(--primary); }
.build-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.workbench-screen { position: relative; overflow: hidden; aspect-ratio: 1 / .82; border-block: 1px solid var(--line); background: #dfe5ea; }
.workbench-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: 24% center; transform: scale(1.04); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-workbench:hover .workbench-screen > img { transform: scale(1); }
.screen-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5, 8, 8, .72)); }
.project-float { position: absolute; z-index: 2; border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 10, 12, .82); color: #f2f4ed; backdrop-filter: blur(14px); box-shadow: 0 18px 45px rgba(0, 0, 0, .25); }
.project-float span, .project-float small { display: block; color: #929b93; font-family: 'DM Mono', monospace; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.project-float-main { right: 18px; bottom: 18px; left: 18px; padding: 17px 18px; border-radius: 14px; }
.project-float-main strong { display: block; margin: 6px 0 4px; font-size: 1.2rem; }
.project-float-code { top: 20px; right: -36px; padding: 13px 15px; border-radius: 10px; transform: rotate(3deg); }
.project-float-code strong { display: block; color: var(--primary); font-family: 'DM Mono', monospace; }
.workbench-foot a { color: var(--text); transition: color .2s ease; }
.workbench-foot a:hover { color: var(--primary); }

.tech-rail { overflow: hidden; padding-block: 19px; border-block: 1px solid var(--line); background: var(--bg-elevated); }
.tech-rail-track { width: max-content; display: flex; align-items: center; gap: 28px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .75rem; letter-spacing: .12em; animation: rail 32s linear infinite; }
.tech-rail-track i { color: var(--primary); font-style: normal; font-size: .65rem; }
@keyframes rail { to { transform: translateX(-50%); } }

/* Shared sections */
.section { position: relative; padding: clamp(92px, 10vw, 152px) 0; }
.section-intro { display: grid; grid-template-columns: minmax(150px, .3fr) 1fr; gap: 50px; align-items: start; margin-bottom: clamp(46px, 6vw, 78px); }
.section-index { padding-top: 10px; color: var(--primary); font-size: .68rem; }
.section-intro > div { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section h2, .section-head h2, .project-hero h1 {
  margin: 0; font-size: clamp(2.7rem, 5.2vw, 5.7rem); line-height: .98; letter-spacing: -.06em; font-weight: 750;
}
.section-intro p { max-width: 440px; margin: 0 0 7px; font-size: .96rem; }
.section-head { max-width: 820px; margin: 0 auto 50px; text-align: center; }
.section-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 11px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--primary); font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase;
}

/* Case studies */
.selected-work { background: color-mix(in srgb, var(--bg-elevated) 45%, var(--bg)); }
.case-study { overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.case-study-wide { display: grid; grid-template-columns: 1.28fr .72fr; min-height: 610px; }
.case-media { position: relative; display: block; overflow: hidden; min-height: 360px; background: var(--surface-2); }
.case-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 6, 6, .45)); opacity: .6; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.case-media:hover img { transform: scale(1.025); }
.case-open { position: absolute; right: 18px; bottom: 18px; z-index: 2; padding: 10px 14px; border-radius: 999px; color: #f1f4ed; background: rgba(8, 10, 12, .82); backdrop-filter: blur(12px); font-size: .73rem; font-weight: 700; }
.case-copy { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); }
.case-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted-2); font-size: .61rem; }
.case-meta span:first-child { color: var(--primary); }
.case-copy h3 { margin: auto 0 20px; font-size: clamp(2.3rem, 3.5vw, 4rem); line-height: .95; letter-spacing: -.055em; }
.case-copy > p { font-size: .95rem; }
.case-result { display: grid; gap: 7px; margin: 28px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.case-result span { color: var(--muted-2); font-family: 'DM Mono', monospace; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
.case-result strong { font-size: .9rem; }
.case-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, .38fr);
  gap: 10px;
  margin-top: 28px;
}
.case-insight-grid > div,
.case-compact-result {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.case-insight-grid span,
.case-compact-result span {
  color: var(--muted-2);
  font-family: 'DM Mono', monospace;
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-insight-grid strong,
.case-compact-result strong { font-size: .78rem; line-height: 1.55; }
.case-insight-grid .case-metric {
  align-content: center;
  color: var(--black);
  background: var(--primary);
  border-color: var(--primary);
}
.case-insight-grid .case-metric span { color: rgba(8, 10, 12, .56); }
.case-insight-grid .case-metric strong { font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1; letter-spacing: -.045em; }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.case-study-compact .case-media { aspect-ratio: 16 / 10; }
.case-study-compact .case-copy { min-height: 330px; }
.case-study-compact .case-copy h3 { margin: auto 0 11px; font-size: clamp(2rem, 3vw, 3.1rem); }
.case-study-compact .case-copy p { margin-bottom: 0; }
.case-compact-result { grid-template-columns: minmax(80px, .32fr) 1fr; align-items: center; margin-top: 22px; padding: 14px 16px; }
.case-compact-result span { color: var(--primary); font-size: .75rem; font-weight: 700; }
.case-study-compact:nth-child(2) .case-media img { object-position: center 37%; }

.tech-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-list span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .61rem; text-transform: uppercase; }
.tech-list.compact span { padding: 5px 8px; font-size: .57rem; }

/* Project archive */
.archive-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 100px 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.archive-head h3 { margin: 7px 0 0; font-size: clamp(2rem, 3vw, 3.2rem); letter-spacing: -.05em; }
.mini-label { color: var(--primary); font-size: .62rem; }
.search-wrap { width: min(100%, 330px); }
.search-input { width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; color: var(--text); background: transparent; font-size: .85rem; }
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { border-color: var(--primary); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: project; }
.project-card { counter-increment: project; position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--bg); box-shadow: none; transition: transform .3s ease, border-color .3s ease; }
.project-card:hover { transform: translateY(-5px); border-color: var(--line-bright); }
.project-card::before { content: counter(project, decimal-leading-zero); position: absolute; top: 17px; left: 17px; z-index: 3; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #f5f7f0; background: rgba(8, 10, 12, .82); font-family: 'DM Mono', monospace; font-size: .57rem; backdrop-filter: blur(10px); }
.project-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-thumb img { transform: scale(1.035); }
.project-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.project-category { width: fit-content; margin-bottom: 18px; color: var(--primary); font-size: .58rem; }
.project-card h3 { margin: 0 0 11px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.05; letter-spacing: -.04em; }
.project-card p { margin-bottom: 20px; font-size: .82rem; line-height: 1.65; }
.project-card .tech-list { margin-top: auto; padding-top: 4px; }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.project-actions .btn { min-height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--text); font-size: .7rem; }
.project-actions .btn:hover { color: var(--primary); transform: none; }
.badge-muted, .badge-large { color: var(--muted-2); font-family: 'DM Mono', monospace; font-size: .55rem; text-transform: uppercase; }
.badge-large { display: inline-flex; align-items: center; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; }
.projects-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination-btn { min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; font-size: .72rem; }
.pagination-btn:hover, .pagination-btn.active { border-color: var(--primary); color: var(--black); background: var(--primary); }
.pagination-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Navigable demo websites */
.demo-sites-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(199, 255, 63, .1), transparent 25%),
    radial-gradient(circle at 9% 58%, rgba(255, 112, 72, .055), transparent 24%),
    var(--bg);
}
.demo-sites-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(35px, 6vw, 90px);
  margin-bottom: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.demo-sites-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
}
.demo-sites-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.demo-sites-heading h2 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7.4rem);
  line-height: .85;
  letter-spacing: -.075em;
}
.demo-sites-aside > p {
  margin: 0 0 34px;
  font-size: .94rem;
  line-height: 1.75;
}
.demo-sites-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.demo-sites-facts span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted-2);
  font-family: 'DM Mono', monospace;
  font-size: .51rem;
  line-height: 1.4;
  text-transform: uppercase;
}
.demo-sites-facts strong {
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 1.12rem;
  letter-spacing: -.04em;
}
.demo-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.demo-site-card {
  --demo-tone: var(--primary);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-elevated) 94%, var(--demo-tone));
  transition: transform .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease, box-shadow .32s ease;
}
.demo-site-card::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--demo-tone);
}
.demo-site-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--demo-tone) 65%, var(--line));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
  transform: translateY(-7px);
}
.demo-site-psychology { --demo-tone: #b7d3aa; }
.demo-site-law { --demo-tone: #c4b79f; }
.demo-site-restaurant { --demo-tone: #d99268; }
.demo-site-hotel { --demo-tone: #a8aa78; }
.demo-site-dentist { --demo-tone: #87bec8; }
.demo-site-beauty { --demo-tone: #cc866d; }
.demo-site-build { --demo-tone: #ff6740; }
.demo-site-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
}
.demo-site-card:first-child .demo-site-visual {
  min-height: 510px;
  aspect-ratio: auto;
}
.demo-site-card:first-child .demo-site-copy {
  min-height: 510px;
  padding: clamp(34px, 5vw, 66px);
}
.demo-site-card:first-child .demo-site-copy h3 {
  font-size: clamp(3.7rem, 6vw, 6.7rem);
}
.demo-site-visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  background: var(--surface-2);
}
.demo-site-visual::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, .03) 45%, rgba(8, 10, 12, .78)),
    linear-gradient(90deg, rgba(8, 10, 12, .18), transparent 40%);
}
.demo-site-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
.demo-site-law .demo-site-visual img { filter: saturate(.75) brightness(.78); }
.demo-site-restaurant .demo-site-visual img { filter: saturate(.9) brightness(.82); }
.demo-site-hotel .demo-site-visual img { filter: saturate(.75) brightness(.82); }
.demo-site-dentist .demo-site-visual img { filter: saturate(.8) brightness(.93); }
.demo-site-beauty .demo-site-visual img { filter: saturate(.65) brightness(.88); }
.demo-site-build .demo-site-visual img { filter: saturate(.72) brightness(.78); }
.demo-site-card:hover .demo-site-visual img { transform: scale(1.05); }
.demo-site-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(8,10,12,.5);
  backdrop-filter: blur(10px);
  font-family: 'DM Mono', monospace;
  font-size: .5rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.demo-site-open {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: flex-end;
  color: #fff;
  font-size: .72rem;
  font-weight: 750;
}
.demo-site-copy {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.demo-site-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--demo-tone);
  font-family: 'DM Mono', monospace;
  font-size: .54rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-site-copy h3 {
  margin: 46px 0 14px;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.demo-site-copy p {
  max-width: 530px;
  margin: 0 0 30px;
  font-size: .82rem;
  line-height: 1.7;
}
.demo-site-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.demo-site-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--text);
  font-size: .65rem;
  font-weight: 750;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.demo-site-actions a:first-child { color: var(--black); border-color: var(--demo-tone); background: var(--demo-tone); }
.demo-site-actions a:hover { color: var(--black); border-color: var(--demo-tone); background: var(--demo-tone); }
.demo-sites-footer {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.demo-collection-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 220px;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 24px;
  color: var(--black);
  background: var(--primary);
  transition: background .22s ease, transform .25s ease, box-shadow .25s ease;
}
.demo-collection-cta:hover {
  background: var(--primary-2);
  box-shadow: 0 26px 70px rgba(199, 255, 63, .13);
  transform: translateY(-4px);
}
.demo-collection-cta > span {
  display: flex;
  flex-direction: column;
}
.demo-collection-cta small {
  margin-bottom: 14px;
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.demo-collection-cta strong {
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: .9;
  letter-spacing: -.07em;
}
.demo-collection-cta i {
  display: grid;
  width: clamp(74px, 9vw, 118px);
  height: clamp(74px, 9vw, 118px);
  place-items: center;
  border: 1px solid rgba(8,10,12,.35);
  border-radius: 50%;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-style: normal;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.demo-collection-cta:hover i {
  color: var(--primary);
  background: var(--black);
  transform: rotate(45deg);
}
.demo-sites-footer > p {
  max-width: 720px;
  margin: 0;
  padding-left: 4px;
  font-size: .7rem;
}

/* Services */
.services-section { background: var(--primary); color: var(--black); }
.services-section .section-index, .services-section p { color: rgba(8, 10, 12, .62); }
.services-section .section-intro { border-color: rgba(8, 10, 12, .2); }
.service-list { border-top: 1px solid rgba(8, 10, 12, .25); }
.service-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 190px 34px; gap: 24px; align-items: center; min-height: 152px; border-bottom: 1px solid rgba(8, 10, 12, .25); transition: padding .25s ease, background .25s ease; }
.service-row:hover { padding-inline: 18px; background: rgba(255, 255, 255, .17); }
.service-number { color: rgba(8, 10, 12, .48); font-size: .65rem; }
.service-row h3 { margin: 0 0 7px; font-size: clamp(1.65rem, 3vw, 2.7rem); letter-spacing: -.055em; line-height: 1; }
.service-row p { max-width: 670px; margin: 0; font-size: .86rem; }
.service-stack { color: rgba(8, 10, 12, .58); font-size: .58rem; }
.service-row > i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(8, 10, 12, .3); border-radius: 50%; font-style: normal; transition: transform .25s ease; }
.service-row:hover > i { transform: rotate(45deg); }

/* Process */
.process-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(60px, 9vw, 150px); align-items: start; }
.process-sticky { position: sticky; top: 125px; }
.process-sticky h2 { margin: 20px 0 24px; font-size: clamp(2.7rem, 4.5vw, 5rem); }
.process-sticky p { max-width: 480px; margin-bottom: 28px; }
.process-steps { border-top: 1px solid var(--line); }
.process-step { display: grid; grid-template-columns: 76px 1fr; gap: 22px; padding: 38px 0 44px; border-bottom: 1px solid var(--line); }
.process-step > span { color: var(--primary); font-family: 'DM Mono', monospace; font-size: .64rem; }
.process-step h3 { margin: 0 0 9px; font-size: clamp(1.5rem, 2.5vw, 2.4rem); letter-spacing: -.045em; }
.process-step p { max-width: 600px; margin: 0; font-size: .9rem; }

/* Profile */
.about-section { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-elevated); }
.about-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 9vw, 150px); align-items: center; }
.about-mark { position: relative; color: transparent; font-size: clamp(10rem, 24vw, 24rem); font-weight: 800; line-height: .75; letter-spacing: -.14em; -webkit-text-stroke: 1px var(--line-bright); user-select: none; }
.about-mark::before { content: ''; position: absolute; inset: 12% 1% -13% 17%; z-index: -1; border-radius: 50%; background: var(--primary); opacity: .12; filter: blur(70px); }
.about-mark span { color: var(--primary); -webkit-text-stroke: 0; }
.about-copy h2 { margin: 20px 0 30px; }
.about-lead { color: var(--text); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.55; }
.about-copy > p:not(.about-lead) { max-width: 720px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0; border-top: 1px solid var(--line); }
.about-facts div { display: grid; gap: 5px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.about-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.about-facts div:nth-child(even) { padding-left: 22px; }
.about-facts span { color: var(--muted-2); font-family: 'DM Mono', monospace; font-size: .59rem; text-transform: uppercase; }
.about-facts strong { font-size: .82rem; }

/* Solutions */
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { position: relative; min-height: 290px; display: flex; flex-direction: column; padding: clamp(26px, 4vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elevated); transition: color .3s ease, background .3s ease; }
.solution-card:hover { color: var(--black); background: var(--primary); }
.solution-card > span { color: var(--primary); font-size: .61rem; }
.solution-card:hover > span, .solution-card:hover p { color: rgba(8, 10, 12, .62); }
.solution-card h3 { max-width: 520px; margin: auto 50px 12px 0; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.solution-card p { max-width: 430px; margin-bottom: 0; font-size: .82rem; }
.solution-card i { position: absolute; right: 28px; bottom: 29px; font-style: normal; font-size: 1.3rem; transition: transform .25s ease; }
.solution-card:hover i { transform: rotate(45deg); }

/* Reviews */
.reviews-section { background: var(--bg-elevated); }
.reviews-header { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 60px; }
.reviews-header h2 { margin-top: 20px; }
.reviews-proof {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.15fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.google-score { display: flex; align-items: center; gap: 18px; }
.google-mark {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(from -38deg, #4285f4 0 25%, #34a853 25% 47%, #fbbc05 47% 68%, #ea4335 68% 100%);
  box-shadow: inset 0 0 0 9px var(--bg);
  font-size: 1.3rem;
  font-weight: 800;
}
.rating-lockup { min-width: 220px; display: grid; gap: 5px; padding-left: 22px; border-left: 1px solid var(--line); }
.rating-lockup strong { font-size: 1.1rem; }
.rating-lockup span { color: var(--muted); font-size: .75rem; }
.rating-lockup div { color: var(--primary); letter-spacing: .12em; }
.review-proof-points { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
.review-proof-points span { display: grid; gap: 4px; min-height: 58px; padding: 7px 22px; color: var(--muted-2); font-size: .65rem; line-height: 1.45; }
.review-proof-points span + span { border-left: 1px solid var(--line); }
.review-proof-points strong { color: var(--text); font-size: .75rem; }
.reviews-google-cta { white-space: nowrap; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.review-card { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-stars { color: var(--primary); letter-spacing: .1em; }
.review-text { color: var(--text); font-size: .94rem; line-height: 1.72; }
.review-more { color: var(--muted-2); font-size: .67rem; }
.review-author { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 25px; }
.review-author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.review-author strong, .review-author span { display: block; }
.review-author strong { font-size: .78rem; }
.review-author span { color: var(--muted-2); font-size: .65rem; }
.reviews-link { margin-top: 28px; }

/* CTA and footer */
.contact-cta { padding-block: 90px; }
.cta-panel { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 92px); color: var(--black); background: var(--primary); }
.cta-panel::after { content: '</>'; position: absolute; right: -2%; bottom: -34%; color: rgba(8, 10, 12, .08); font-family: 'DM Mono', monospace; font-size: clamp(10rem, 25vw, 23rem); font-weight: 700; line-height: 1; }
.cta-panel .section-index, .cta-panel p { position: relative; z-index: 1; color: rgba(8, 10, 12, .62); }
.cta-panel h2 { position: relative; z-index: 1; margin: 22px 0; font-size: clamp(3.8rem, 8vw, 8.4rem); }
.cta-panel p { max-width: 610px; font-size: 1rem; }
.cta-actions { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.cta-email { border-bottom: 1px solid rgba(8, 10, 12, .45); font-size: .85rem; font-weight: 750; }
.site-footer { padding: 66px 0 76px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .9fr .8fr; gap: 60px; }
.footer-brand p { max-width: 280px; margin: 23px 0 0; font-size: .78rem; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col > span { margin-bottom: 9px; color: var(--muted-2); font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a, .footer-col p { margin: 0; color: var(--muted); font-size: .75rem; }
.footer-col a:hover { color: var(--primary); }

/* Legacy/common cards used by other public pages */
.glass-card { border: 1px solid var(--line); background: var(--bg-elevated); box-shadow: var(--shadow); }
.grid-3, .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2, .split-grid, .resume-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card, .service-card, .resume-card, .detail-card, .contact-card { padding: clamp(24px, 3vw, 38px); }
.card h3, .service-card h3, .resume-card h3, .detail-card h2, .contact-card h3 { margin-bottom: 11px; letter-spacing: -.035em; }
.check-list, .feature-list, .footer-list { list-style: none; margin: 0; padding: 0; }
.check-list { display: grid; gap: 10px; margin-top: 20px; }
.check-list li { position: relative; padding-left: 27px; color: var(--muted); }
.check-list li::before { content: '↳'; position: absolute; left: 0; color: var(--primary); }
.hero-card { padding: 30px; }
.lead { max-width: 720px; font-size: 1.08rem; }
.price-box, .cta, .cta-box { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 50px); }
.price { color: var(--primary); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.06em; }
.price small { color: var(--muted); font-size: .85rem; letter-spacing: 0; }
.steps { counter-reset: steps; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 15px; }
.step::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); color: var(--primary); font-family: 'DM Mono', monospace; }
.campaign-kicker { color: var(--primary); font-size: .6rem; }
.floating-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 45; padding: 12px 16px; border-radius: 999px; color: #07120a; background: #54d66d; box-shadow: var(--shadow); font-weight: 750; font-size: .8rem; }
.whatsapp-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 11px;
  min-height: 58px; padding: 8px 18px 8px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  color: #06120a; background: #45d969; box-shadow: 0 18px 55px rgba(0,0,0,.35), 0 8px 26px rgba(37,211,102,.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.whatsapp-contact:hover { transform: translateY(-4px); background: #57e577; box-shadow: 0 23px 65px rgba(0,0,0,.42), 0 10px 32px rgba(37,211,102,.25); }
.whatsapp-contact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #11983e; }
.whatsapp-contact-icon svg { width: 25px; height: 25px; }
.whatsapp-contact-copy { display: grid; line-height: 1.15; }
.whatsapp-contact-copy small { margin-bottom: 4px; font-family: 'DM Mono', monospace; font-size: .52rem; letter-spacing: .07em; text-transform: uppercase; opacity: .62; }
.whatsapp-contact-copy strong { font-size: .76rem; }

/* Contact page */
.contact-page .section:first-of-type { padding-top: clamp(70px, 9vw, 130px); }
.contact-page .section-head { max-width: 1000px; text-align: left; margin-left: 0; }
.contact-page .section-head h1 { margin: 18px 0 24px; font-size: clamp(3.6rem, 8vw, 8rem); line-height: .88; letter-spacing: -.075em; }
.contact-page .section-head > p { max-width: 680px; font-size: 1.05rem; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.contact-page .contact-layout { align-items: stretch; }
.contact-page .contact-card { border-radius: 0 !important; background: var(--bg-elevated) !important; box-shadow: none !important; }
.contact-page .contact-card h3 { margin: 12px 0 18px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; }
.contact-form { display: grid; gap: 13px; }
.contact-form label { color: var(--muted); font-size: .72rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 0; outline: 0;
  color: var(--text); background: var(--surface); transition: border-color .2s ease, background .2s ease;
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); background: var(--bg-elevated); }
.contact-page .contact-form input, .contact-page .contact-form textarea { border-radius: 0 !important; border-color: var(--line) !important; background: var(--surface) !important; }
.contact-page .contact-form input:focus, .contact-page .contact-form textarea:focus { border-color: var(--primary) !important; }
.form-status { padding: 14px 16px; border: 1px solid var(--line); font-size: .8rem; }
.form-status.success { border-color: var(--primary); color: var(--primary); }
.form-status.error { border-color: var(--accent); color: var(--accent); }
.hp-field { position: absolute; left: -9999px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { padding: 7px 10px; border: 1px solid var(--line); font-size: .7rem; }
.footer-shell { padding: 38px; }
.contact-page .footer-grid { grid-template-columns: 1.4fr .75fr .9fr; }
.footer-bottom, .footer-bottom-only { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-links { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.footer-bottom-links, .footer-mini-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Project detail */
.project-page { min-height: 100vh; }
.project-detail-page { padding: 30px 0 100px; }
.page-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px 28px; }
.back-link { color: var(--muted); font-size: .77rem; font-weight: 700; }
.back-link:hover { color: var(--primary); }
.project-hero { padding: 50px 0 38px; }
.project-hero-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.project-hero h1 { margin: 18px 0 28px; }
.project-lead { max-width: 620px; font-size: 1rem; }
.project-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.project-visual { overflow: hidden; padding: 0; box-shadow: var(--shadow); }
.project-visual img, .project-hero-video { width: 100%; min-height: 480px; aspect-ratio: 16 / 11; object-fit: cover; }
.project-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; margin-top: 35px; }
.full-width { grid-column: 1 / -1; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 15px 0 15px 24px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.feature-list li::before { content: '↳'; position: absolute; left: 0; color: var(--primary); }
.project-gallery-slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-gallery-item { overflow: hidden; padding: 0; border: 1px solid var(--line); cursor: zoom-in; background: var(--surface); }
.project-gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.project-gallery-item:hover img { transform: scale(1.035); }
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 30px; background: rgba(3, 5, 5, .92); backdrop-filter: blur(15px); }
.lightbox-overlay.open { display: grid; }
.lightbox-image { max-width: 95vw; max-height: 88vh; box-shadow: 0 30px 100px #000; }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 1.5rem; }

/* Timeline and CV */
.resume-card-head, .cv-item-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.timeline { display: grid; gap: 20px; }
.timeline-item { padding-left: 20px; border-left: 1px solid var(--line-bright); }
.timeline-year, .cv-item-top span { display: block; margin-bottom: 6px; color: var(--primary); font-family: 'DM Mono', monospace; font-size: .68rem; }
.timeline-place, .cv-subtitle { color: var(--text); font-weight: 650; }
.cv-page { color: #111611; background: #dfe4db; }
.cv-wrapper { width: min(1040px, calc(100% - 28px)); margin: 24px auto 55px; }
.cv-actions { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.cv-actions .btn-secondary { color: #111611; border-color: #aeb7ad; }
.cv-sheet { padding: clamp(32px, 6vw, 66px); background: #fbfcf8; box-shadow: 0 28px 80px rgba(27, 41, 29, .14); }
.cv-header { display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px; padding-bottom: 35px; border-bottom: 1px solid #d3d9d0; }
.cv-header h1 { margin: 8px 0 12px; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .94; letter-spacing: -.065em; }
.cv-role { color: #527600; font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cv-summary, .cv-sheet p, .cv-sheet li { color: #4e574f; }
.cv-contacts { padding: 22px; border: 1px solid #d3d9d0; background: #f0f3ed; }
.cv-contacts p { margin-bottom: 9px; font-size: .8rem; }
.cv-section { padding-top: 34px; }
.cv-section h2 { padding-bottom: 12px; border-bottom: 1px solid #d3d9d0; font-size: 1.45rem; letter-spacing: -.035em; }
.cv-item { padding: 22px 0; border-bottom: 1px solid #e0e4dc; }
.cv-item-top h3 { margin-bottom: 3px; }

/* Reveal */
.reveal, .reveal-delay { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal-delay { transition-delay: .12s; }
.reveal.visible, .reveal-delay.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .main-nav { gap: 16px; }
  .main-nav .nav-private { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .hero-workbench { width: min(760px, 92%); margin-left: auto; }
  .case-study-wide { grid-template-columns: 1fr; }
  .case-study-wide .case-media { aspect-ratio: 16 / 9; }
  .case-study-wide .case-copy { min-height: 400px; }
  .reviews-proof { grid-template-columns: 1fr auto; }
  .review-proof-points { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); border-left: 0; padding-top: 17px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-sites-heading { grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr); gap: 55px; }
  .demo-site-card:first-child { grid-template-columns: 1fr .9fr; }
  .demo-site-card:first-child .demo-site-visual,
  .demo-site-card:first-child .demo-site-copy { min-height: 460px; }
  .process-grid, .about-layout { gap: 70px; }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
  .nav-wrap { min-height: 72px; gap: 12px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-copy small { display: none; }
  .nav-actions .theme-toggle { display: none; }
  .nav-actions .btn { min-height: 38px; padding-inline: 14px; }
  .nav-toggle { order: 3; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .nav-toggle span { grid-area: 1/1; width: 16px; height: 1px; background: var(--text); transition: transform .25s ease; }
  .nav-toggle span:first-child { transform: translateY(-3px); }
  .nav-toggle span:last-child { transform: translateY(3px); }
  .nav-toggle.is-open span:first-child { transform: rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: rotate(-45deg); }
  .main-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; align-items: stretch; padding: 18px 14px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 10px 8px; font-size: 1rem; }
  .main-nav .nav-private { display: block; }
  .main-nav a::after { display: none; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: clamp(3.65rem, 15.5vw, 6.5rem); }
  .hero-lead { margin-top: 26px; }
  .hero-proof { grid-template-columns: 1fr; gap: 13px; }
  .hero-proof div { grid-template-columns: 130px 1fr; }
  .hero-workbench { width: 100%; }
  .project-float-code { right: 12px; }
  .section { padding: 90px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 17px; }
  .section-intro > div { display: block; }
  .section-intro p { margin-top: 22px; }
  .demo-sites-intro { grid-template-columns: 1fr; gap: 18px; margin-bottom: 38px; }
  .demo-sites-heading { grid-template-columns: 1fr; gap: 35px; }
  .demo-sites-heading h2 { font-size: clamp(3.5rem, 14vw, 6rem); }
  .demo-sites-aside > p { max-width: 620px; margin-bottom: 26px; }
  .demo-sites-grid { grid-template-columns: 1fr; }
  .demo-site-card:first-child { grid-column: auto; display: block; }
  .demo-site-card:first-child .demo-site-visual { min-height: 0; aspect-ratio: 16 / 9.4; }
  .demo-site-card:first-child .demo-site-copy { min-height: 280px; padding: 30px; }
  .demo-site-card:first-child .demo-site-copy h3 { font-size: clamp(2.35rem, 12vw, 4.4rem); }
  .demo-collection-cta { min-height: 185px; }
  .case-pair, .solution-grid, .reviews-grid, .process-grid, .about-layout, .contact-layout, .project-hero-grid, .project-detail-grid, .resume-grid, .split-grid, .grid-2 { grid-template-columns: 1fr; }
  .project-grid, .grid-3, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .case-study-compact .case-copy { min-height: 220px; }
  .archive-head { margin-top: 75px; }
  .service-row { grid-template-columns: 42px 1fr 32px; min-height: 140px; gap: 15px; }
  .service-stack { display: none; }
  .process-sticky { position: static; }
  .about-mark { text-align: center; }
  .solution-grid { border-left: 1px solid var(--line); }
  .reviews-header { display: grid; gap: 35px; }
  .reviews-grid { border-left: 1px solid var(--line); }
  .review-card { min-height: 280px; }
  .reviews-proof { grid-template-columns: 1fr; align-items: stretch; }
  .review-proof-points { grid-column: auto; grid-row: auto; }
  .reviews-google-cta { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-meta { grid-column: 1 / -1; }
  .project-visual img, .project-hero-video { min-height: 300px; }
  .feature-list { grid-template-columns: 1fr; }
  .project-gallery-slider { grid-template-columns: repeat(2, 1fr); }
  .cv-header { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, var(--container)); }
  .brand-copy strong { font-size: .78rem; }
  .nav-actions .btn { padding-inline: 12px; font-size: .72rem; }
  .nav-actions .btn span { display: none; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(3.3rem, 18vw, 5.7rem); }
  .hero-actions .btn { width: 100%; }
  .hero-proof div { grid-template-columns: 105px 1fr; }
  .workbench-screen { aspect-ratio: 1 / .9; }
  .project-float-main { right: 10px; bottom: 10px; left: 10px; }
  .workbench-foot span { display: none; }
  .section h2, .section-head h2, .project-hero h1 { font-size: clamp(2.55rem, 12.5vw, 4.2rem); }
  .case-pair, .project-grid, .grid-3, .service-grid { grid-template-columns: 1fr; }
  .case-study-wide .case-copy { min-height: 380px; }
  .case-insight-grid { grid-template-columns: 1fr; }
  .case-compact-result { grid-template-columns: 1fr; }
  .google-score { align-items: flex-start; }
  .rating-lockup { min-width: 0; padding-left: 14px; }
  .review-proof-points { grid-template-columns: 1fr; }
  .review-proof-points span { padding-inline: 0; }
  .review-proof-points span + span { padding-top: 16px; border-top: 1px solid var(--line); border-left: 0; }
  .demo-sites-heading h2 { font-size: clamp(3.35rem, 16.5vw, 5.3rem); }
  .demo-sites-facts { grid-template-columns: 1fr; gap: 13px; }
  .demo-sites-facts span { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
  .demo-site-card,
  .demo-collection-cta { border-radius: 17px; }
  .demo-site-copy,
  .demo-site-card:first-child .demo-site-copy { min-height: 265px; padding: 23px; }
  .demo-site-copy h3 { margin-top: 42px; }
  .demo-collection-cta { grid-template-columns: 1fr; min-height: 0; padding: 34px 25px; }
  .demo-collection-cta strong { font-size: clamp(2.55rem, 13vw, 4.1rem); }
  .demo-collection-cta i { width: 68px; height: 68px; font-size: 2rem; }
  .case-study-compact .case-media { aspect-ratio: 4 / 3; }
  .archive-head { align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .service-row { grid-template-columns: 33px 1fr 26px; padding-block: 26px; }
  .service-row h3 { font-size: 1.65rem; }
  .service-row > i { width: 26px; height: 26px; }
  .process-step { grid-template-columns: 40px 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div:nth-child(odd) { border-right: 0; }
  .about-facts div:nth-child(even) { padding-left: 0; }
  .solution-card { min-height: 245px; }
  .cta-panel { padding: 34px 24px; }
  .cta-panel h2 { font-size: 3.5rem; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { gap: 40px 24px; }
  .price-box, .cta, .cta-box, .footer-bottom, .footer-bottom-only { align-items: stretch; flex-direction: column; }
  .project-gallery-slider { grid-template-columns: 1fr; }
  .pagination-btn { min-width: 38px; padding-inline: 10px; }
  .pagination-btn:first-child, .pagination-btn:last-child { font-size: 0; }
  .pagination-btn:first-child::after { content: '←'; font-size: .8rem; }
  .pagination-btn:last-child::after { content: '→'; font-size: .8rem; }
  .cv-wrapper { width: min(100% - 16px, 1040px); }
  .cv-sheet { padding: 27px 21px; }
  .cv-actions { flex-direction: column; }
  .cv-item-top { display: block; }
  .whatsapp-contact { right: 14px; bottom: 14px; width: 54px; min-height: 54px; padding: 7px; }
  .whatsapp-contact-icon { width: 38px; height: 38px; }
  .whatsapp-contact-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-delay { opacity: 1; transform: none; }
}

@media print {
  .no-print { display: none !important; }
  .cv-page { background: #fff; }
  .cv-wrapper { width: 100%; margin: 0; }
  .cv-sheet { padding: 0; box-shadow: none; }
}
