/* mottocommerce.com — hand-written, mobile-first, light/dark themes */
:root {
  --orange: #f6512b;          /* brand, decorative / large only */
  --orange-strong: #d63e1a;   /* white text on it: 4.6:1 */
  --orange-text: #c93a17;     /* links on light surfaces: 5.1:1 */
  --grey: #545250;
  --mark-grey: #545250;
  --bg: #f7f5f2;
  --bg-alt: #efebe6;
  --surface: #ffffff;
  --surface-2: #faf8f6;
  --text: #22211f;
  --muted: #65625e;
  --line: #e4dfd9;
  --header-bg: rgba(255, 255, 255, .86);
  --cta-bg: #22211f;
  --chip-bg: #f3f0ec;
  --hero-company-bg: #ffffff;
  --grid-line: rgba(84, 82, 80, .09);
  --shadow-sm: 0 1px 2px rgba(34, 33, 31, .06), 0 2px 6px rgba(34, 33, 31, .05);
  --shadow: 0 2px 4px rgba(34, 33, 31, .05), 0 12px 32px rgba(34, 33, 31, .09);
  --shadow-lg: 0 4px 8px rgba(34, 33, 31, .06), 0 24px 60px rgba(34, 33, 31, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + .3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.4vw, 3.5rem);
  color-scheme: light;
}

/* Dark theme: explicit choice, or system preference when no choice was made */
:root[data-theme="dark"] {
  --orange-text: #ff8a6b;
  --grey: #c9c5c0;
  --mark-grey: #e3e0dc;
  --bg: #121110;
  --bg-alt: #181716;
  --surface: #1d1c1b;
  --surface-2: #232221;
  --text: #eeebe7;
  --muted: #a8a49f;
  --line: #2f2d2b;
  --header-bg: rgba(18, 17, 16, .82);
  --cta-bg: #0b0a0a;
  --chip-bg: #262524;
  --hero-company-bg: #161514;
  --grid-line: rgba(238, 235, 231, .07);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange-text: #ff8a6b;
    --grey: #c9c5c0;
    --mark-grey: #e3e0dc;
    --bg: #121110;
    --bg-alt: #181716;
    --surface: #1d1c1b;
    --surface-2: #232221;
    --text: #eeebe7;
    --muted: #a8a49f;
    --line: #2f2d2b;
    --header-bg: rgba(18, 17, 16, .82);
    --cta-bg: #0b0a0a;
    --chip-bg: #262524;
    --hero-company-bg: #161514;
    --grid-line: rgba(238, 235, 231, .07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--text); overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* Brand mark spinner (two triangles from the logo) */
.mark { display: inline-block; width: 1em; height: .7em; }
.mark .mark-grey { fill: var(--mark-grey); }
.mark .mark-orange { fill: var(--orange); }
.mark-spin { animation: mark-flip 1.1s cubic-bezier(.6, 0, .4, 1) infinite; transform-origin: 50% 40%; }
@keyframes mark-flip {
  0% { transform: perspective(200px) rotateY(0deg); }
  50% { transform: perspective(200px) rotateY(180deg); }
  100% { transform: perspective(200px) rotateY(360deg); }
}
/* Loader appears only if loading takes >150ms and always clears itself after 3s */
.page-loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--bg); opacity: 0; pointer-events: none; animation: loader-in .2s .15s forwards, loader-out .3s 3s forwards; transition: opacity .35s ease, visibility .35s; }
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.page-loader .mark { font-size: 72px; }
/* First page view of a session: show the brand intro right away (still self-clears after 3s) */
.show-loader .page-loader { opacity: 1; animation: loader-out .3s 3s forwards; }
.is-loaded .page-loader, .no-js .page-loader { animation: none; opacity: 0; visibility: hidden; }
.btn .mark { font-size: 22px; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .92; }

/* Theme-dependent logos */
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.brand { margin-right: auto; }
.brand img { height: 40px; width: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-sm); }
.icon-btn:hover { border-color: var(--orange); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.no-js .nav-toggle, .no-js .theme-toggle { display: none; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 10px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--orange-text); }
.lang-switch { margin-top: 8px; justify-content: center; border: 1.5px solid var(--line); width: 64px; }
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; background: transparent; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 12px; }
  .site-nav, .no-js .site-nav { display: flex; align-items: center; gap: 8px; position: static; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { min-height: 44px; padding: 0 12px; font-size: .94rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
  .lang-switch { margin: 0 0 0 6px; width: auto; padding: 0 14px !important; }
  .theme-toggle { order: 1; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-strong); color: #fff; box-shadow: 0 6px 18px rgba(214, 62, 26, .32); }
.btn-primary:hover { background: #c93a17; box-shadow: 0 10px 26px rgba(214, 62, 26, .4); }
.btn-primary .mark .mark-grey { fill: #fff; }
.btn-primary .mark .mark-orange { fill: #ffd2c4; }
.btn-outline { border-color: var(--grey); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-light { background: #fff; color: #c93a17; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-whatsapp { background: #128c4b; color: #fff; }
.btn-whatsapp svg { width: 22px; height: 22px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: none; margin-bottom: 8px; }

/* Hero (C layout: founder | company) */
.hero { display: grid; grid-template-columns: 1fr; }
.hero-founder { background: radial-gradient(120% 90% at 0% 0%, #f26a45 0%, var(--orange-strong) 45%, #a92e0d 100%); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
/* Floating brand triangles for depth */
.hero-founder::before, .hero-founder::after { content: ""; position: absolute; z-index: -1; background: rgba(255, 255, 255, .09); clip-path: polygon(0 0, 100% 0, 50% 86%); }
.hero-founder::before { right: -50px; top: -40px; width: 240px; height: 240px; transform: rotate(8deg); }
.hero-founder::after { left: -70px; bottom: -90px; width: 260px; height: 260px; background: rgba(0, 0, 0, .1); transform: rotate(-12deg); }
.hero-founder-inner, .hero-company-inner { padding: 44px var(--gutter); max-width: 620px; margin-inline: auto; position: relative; }
.hero-founder-inner { display: grid; gap: 28px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; margin: 0 0 8px; opacity: .92; }
.hero-name { color: #fff; font-size: var(--step-4); margin: 0 0 8px; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.hero-role { font-size: var(--step-1); font-weight: 600; margin: 0 0 6px; }
.hero-line { opacity: .92; margin: 0; }

/* 3D layered portrait */
.photo-3d { position: relative; width: 176px; perspective: 900px; }
.photo-3d-inner { position: relative; transform-style: preserve-3d; transform: rotateY(calc(-10deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.photo-3d-inner::before, .photo-3d-inner::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.photo-3d-inner::before { background: rgba(255, 255, 255, .16); transform: translateZ(-40px) translate(16px, 16px); }
.photo-3d-inner::after { border: 2px solid rgba(255, 255, 255, .55); transform: translateZ(-80px) translate(30px, 30px); }
.hero-photo { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: translateZ(20px); }

.hero-company { background: var(--hero-company-bg); position: relative; overflow: hidden; isolation: isolate; }
/* Perspective grid floor */
.hero-company::before { content: ""; position: absolute; z-index: -1; left: -50%; right: -50%; bottom: -10%; height: 70%; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
.hero-logo { width: min(320px, 80%); margin-bottom: 22px; }
.hero-tagline { font-size: var(--step-2); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; color: var(--text); margin-bottom: 12px; }
.hero-services { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-services li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.hero-services li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 50% 86%); transform: translateY(1px); }

@media (min-width: 576px) {
  .hero-founder-inner { grid-template-columns: auto 1fr; }
  .photo-3d { width: 196px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - 69px); max-height: 880px; }
  .hero-founder-inner, .hero-company-inner { padding: 72px 56px; margin: 0; align-self: center; }
  .hero-founder { display: flex; justify-content: flex-end; }
  .hero-company { display: flex; align-items: center; }
  .hero-founder-inner { grid-template-columns: 1fr; max-width: 540px; }
  .photo-3d { width: 240px; }
}
@media (min-width: 1280px) {
  .hero-founder-inner { grid-template-columns: auto 1fr; max-width: 660px; }
  .photo-3d { width: 230px; }
}

/* Stats as raised tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -28px; position: relative; z-index: 2; }
.stat { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: var(--step-3); font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -.03em; }
.stat span { font-size: .82rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(52px, 7vw, 96px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.page-head { padding-block: clamp(44px, 6vw, 80px) 28px; }
.page-head h1 { position: relative; padding-bottom: 16px; }
.page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--orange); border-radius: 2px; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-services, .grid-projects, .grid-tech, .grid-services-full { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-services { grid-template-columns: repeat(5, 1fr); }
  .grid-projects { grid-template-columns: repeat(3, 1fr); }
  .grid-tech { grid-template-columns: repeat(3, 1fr); }
}

/* Cards with 3D tilt (JS sets --rx / --ry on [data-tilt]) */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; will-change: transform; }
[data-tilt]:hover { --lift: -4px; box-shadow: var(--shadow-lg); }
.service-card { position: relative; border-top: 4px solid var(--orange); }
.service-card h3 { font-size: 1.04rem; }
.service-card p { font-size: .93rem; margin: 0; }
.grid-services-full .service-card h2 { font-size: var(--step-1); }
.service-num { font-size: .78rem; font-weight: 800; color: var(--orange-text); letter-spacing: .12em; }

.project-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; min-height: 172px; box-shadow: var(--shadow-sm); }
.project-card:hover { border-color: var(--orange); }
.project-card h3 { margin: 0; padding-right: 28px; }
.project-card p { margin: 0 0 10px; font-size: .9rem; }
.project-card-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-text); }
.project-card-arrow { position: absolute; right: 20px; top: 20px; font-size: 1.3rem; color: var(--orange); transition: transform .15s; }
.project-card:hover .project-card-arrow { transform: translateX(4px); }
.project-card[hidden] { display: none; }

.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--chip-bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .84rem; font-weight: 600; color: var(--grey); }
.chips-sm { margin: auto 0 0; }
.chips-sm li { font-size: .74rem; padding: 2px 10px; }
.chips-lg li { font-size: .94rem; padding: 7px 15px; background: var(--surface); box-shadow: var(--shadow-sm); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.checklist { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 10px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 50% 86%); }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-photo .photo-3d { width: 100%; max-width: 300px; margin-bottom: 40px; }
.about-photo .photo-3d-inner::before { background: rgba(246, 81, 43, .18); }
.about-photo .photo-3d-inner::after { border-color: rgba(246, 81, 43, .5); }
.about-photo .btn { max-width: 320px; }
.prose { max-width: 70ch; }
.prose p { font-size: var(--step-0); }
@media (min-width: 768px) { .about-grid { grid-template-columns: 340px 1fr; align-items: start; } }

.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding: 0 0 30px 26px; }
.timeline-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--orange); box-shadow: 0 0 0 4px var(--bg); }
.timeline-period { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.timeline-item h3 { margin: 4px 0 2px; }
.timeline-org { color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.timeline-item ul { margin: 0; }
.lang-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.lang-list dt { font-weight: 700; }
.lang-list dd { margin: 0; }

/* Project detail */
.project-grid { display: grid; gap: 24px; padding-bottom: 32px; }
.project-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-self: start; }
.project-facts dt { font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.project-facts dd { margin: 0; font-weight: 600; }
@media (min-width: 768px) { .project-grid { grid-template-columns: 320px 1fr; gap: 40px; } }
.project-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 52px; }
.project-pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); text-decoration: none; color: var(--text); min-height: 72px; }
.project-pager a:hover { border-color: var(--orange); }
.project-pager a[rel="next"] { text-align: right; }
.project-pager span { font-size: .8rem; }

/* CTA */
.cta { background: var(--cta-bg); color: #fff; padding-block: clamp(44px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 360px; height: 360px; background: var(--orange); opacity: .14; clip-path: polygon(0 0, 100% 0, 50% 86%); transform: rotate(14deg); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta .btn-light { color: #22211f; }
.cta-inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .cta-inner { grid-template-columns: 1fr auto; } .cta .btn-row { margin: 0; } }

/* Contact */
.contact-grid { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 360px 1fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 700; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { font: inherit; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(246, 81, 43, .18); }
.field [aria-invalid="true"] { border-color: var(--orange-strong); }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field-check input { width: 24px; height: 24px; min-height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--orange-strong); }
.field-check label { flex: 1; font-weight: 500; }
.field-check .field-error { flex-basis: 100%; }
.field-error { color: var(--orange-text); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.alert { display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.alert:target { display: block; scroll-margin-top: 96px; }
.alert-success { background: rgba(19, 140, 75, .14); color: #1d8a52; }
.alert-error { background: rgba(214, 62, 26, .14); color: var(--orange-text); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 44px; font-size: .93rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 8px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange-text); }
.footer-bottom { padding-block: 20px 88px; font-size: .85rem; border-top: 1px solid var(--line); margin-top: 24px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 16px; }
}

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* 404 */
.notfound { padding-block: 64px; }
.notfound img { width: min(280px, 70%); margin-bottom: 24px; }
.notfound-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--orange); line-height: 1; margin: 0 0 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  [data-tilt], .photo-3d-inner { transform: none !important; }
}
