/* ==========================================================================
   Luís Pedro Quintal — Engenheiro Civil
   Design system & stylesheet
   ========================================================================== */

/* ---------- Fontes (alojadas localmente, sem pedidos externos) ---------- */

/* Fontes alojadas localmente (sem pedidos a servidores externos) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/sora-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/sora-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-800: #04485a;
  --brand-700: #005a72;
  --brand-600: #006d87;
  --brand-500: #0d8aa8;
  --brand-300: #7cc4d4;
  --brand-100: #d9eef3;
  --brand-50: #eef7f9;

  --ink-900: #08191f;
  --ink-800: #10262e;
  --ink-700: #22363f;
  --ink-500: #5b6f78;
  --ink-400: #7e9099;

  --paper: #f6f9fa;
  --white: #ffffff;
  --line: #e2ecef;

  --amber: #e8a23c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --pill: 999px;

  --shadow-sm: 0 2px 8px rgba(8, 25, 31, 0.06);
  --shadow: 0 12px 32px rgba(8, 25, 31, 0.09);
  --shadow-lg: 0 24px 60px rgba(8, 25, 31, 0.16);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-800); }
ul, ol { padding-left: 1.2rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--brand-600); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--paper); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { font-size: 1.08rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--solid { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px rgba(0, 109, 135, 0.32); }
.btn--solid:hover { background: var(--brand-700); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn--outline { border-color: var(--brand-600); color: var(--brand-700); background: transparent; }
.btn--outline:hover { background: var(--brand-600); color: #fff; }

.btn--on-light { background: #fff; color: var(--brand-700); }
.btn--on-light:hover { background: var(--brand-50); color: var(--brand-800); }

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.86rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.site-header.is-scrolled { height: 64px; }
.site-header.is-scrolled::after { opacity: 1; border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.8rem; color: inherit; }
.brand:hover { color: inherit; }
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(0, 109, 135, 0.35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-900); }
.brand__role { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }

/* header on top of hero (not scrolled) */
.site-header:not(.is-scrolled):not(.is-static) .brand__name { color: #fff; }
.site-header:not(.is-scrolled):not(.is-static) .brand__role { color: var(--brand-300); }
.site-header:not(.is-scrolled):not(.is-static) .nav__link { color: rgba(255, 255, 255, 0.88); }
.site-header:not(.is-scrolled):not(.is-static) .nav__link:hover,
.site-header:not(.is-scrolled):not(.is-static) .nav__link[aria-current="page"] { color: #fff; }
.site-header:not(.is-scrolled):not(.is-static) .nav-toggle__bar { background: #fff; }
.site-header:not(.is-scrolled):not(.is-static) .btn--solid { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.site-header:not(.is-scrolled):not(.is-static) .btn--solid:hover { background: var(--brand-50); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.4rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand-700); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle__bar { height: 2px; border-radius: 2px; background: var(--ink-800); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  background: var(--ink-900);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-1920.jpg");
  background-image: image-set(url("../img/hero-1920.webp") type("image/webp"), url("../img/hero-1920.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.02);
}
@media (max-width: 720px) {
  .hero__bg {
    background-image: url("../img/hero-960.jpg");
    background-image: image-set(url("../img/hero-960.webp") type("image/webp"), url("../img/hero-960.jpg") type("image/jpeg"));
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 24, 31, 0.92) 0%, rgba(4, 24, 31, 0.75) 38%, rgba(4, 24, 31, 0.28) 70%, rgba(4, 24, 31, 0.45) 100%);
}
.hero__inner { padding-block: calc(var(--header-h) + 3rem) 5rem; width: 100%; }
.hero__content { max-width: 660px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(124, 196, 212, 0.35);
  border-radius: var(--pill);
  background: rgba(13, 138, 168, 0.14);
  backdrop-filter: blur(6px);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.6rem;
  max-width: 660px;
}
.stat__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.stat__label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.68); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--ink-900), var(--brand-800) 85%);
  color: #fff;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.7rem; }
.page-hero .lead { color: rgba(255, 255, 255, 0.78); max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--brand-300); }
.page-hero .eyebrow::before { background: var(--brand-300); }

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { opacity: 0.5; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--brand-300);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-photo__caption {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--brand-50);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-700);
}
.about-photo__caption strong { color: var(--brand-700); display: block; font-family: var(--font-display); }

.credentials { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.credentials li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.96rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.credentials li:hover { transform: translateX(4px); border-color: var(--brand-300); }
.credentials svg { width: 20px; height: 20px; flex: none; color: var(--brand-500); margin-top: 0.15rem; }

/* ---------- Cards / services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.2rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.93rem; color: var(--ink-500); margin-bottom: 0; }

.tag-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.32rem 0.8rem;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--pill);
  border: 1px solid var(--brand-100);
}

/* ---------- Projects preview / gallery cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.3rem;
}
.project-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 24, 31, 0.78));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.project-card__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
.project-card:hover::after, .project-card:hover .project-card__caption { opacity: 1; }
.project-card:hover .project-card__caption { transform: translateY(0); }

/* ---------- Software / download cards ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}
.download-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.download-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.download-card h3 { font-size: 1.1rem; margin: 0; }
.badge {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}
.badge--amber { background: #fdf3e3; color: #a2660a; border-color: #f6dfba; }
.download-card p { font-size: 0.94rem; color: var(--ink-500); flex: 1; }
.download-card .btn { align-self: flex-start; }
.file-meta { font-size: 0.8rem; color: var(--ink-400); margin-top: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }

/* ---------- Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
  align-items: center;
}
.chip {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip[aria-pressed="true"] {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 109, 135, 0.3);
}
.gallery-count { margin-left: auto; font-size: 0.86rem; color: var(--ink-400); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.g-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-900);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.g-card:hover img { transform: scale(1.07); }
.g-card a { display: block; width: 100%; height: 100%; }
.g-card__zoom {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-700);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.g-card__zoom svg { width: 18px; height: 18px; }
.g-card:hover .g-card__zoom { opacity: 1; transform: none; }
.g-card figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  right: 0.8rem;
  pointer-events: none;
}
.g-card__credit {
  display: inline-block;
  max-width: 100%;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  background: rgba(8, 25, 31, 0.68);
  color: #fff;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-card.is-hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(4, 16, 21, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  color: rgba(255, 255, 255, 0.85);
}
.lightbox__counter { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.06em; }
.lightbox__close {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  min-height: 0;
}
.lightbox__img {
  max-width: min(1200px, 94vw);
  max-height: calc(100vh - 220px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: lb-in 0.32s var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: max(0.6rem, calc(50vw - 660px)); }
.lightbox__nav--next { right: max(0.6rem, calc(50vw - 660px)); }
.lightbox__bottom { text-align: center; padding: 1rem 1.4rem 1.6rem; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; min-height: 3.4rem; }

/* ---------- Timeline (formação) ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 1.9rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.44rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-100));
  border-radius: 2px;
}
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.42rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-700);
  text-transform: uppercase;
}
.timeline h3 { font-size: 1.05rem; margin: 0.25rem 0 0.35rem; }
.timeline p { font-size: 0.93rem; color: var(--ink-500); margin: 0; }

/* ---------- Bio facts ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.fact dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.3rem;
}
.fact dd { margin: 0; font-size: 0.95rem; color: var(--ink-800); font-weight: 500; }

/* ---------- Certification band ---------- */
.cert-band {
  background: linear-gradient(120deg, var(--ink-900) 0%, var(--brand-800) 70%, var(--brand-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cert-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 85% 15%, #000, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 85% 15%, #000, transparent 65%);
  pointer-events: none;
}
.cert-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cert-band p { color: rgba(255, 255, 255, 0.82); }
.cert-band__badges { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.6rem; }
.cert-band__badges img { height: 56px; width: auto; background: #fff; padding: 0.5rem 0.9rem; border-radius: 10px; }
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed { cursor: pointer; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-embed__play svg {
  width: 58px; height: 58px; padding: 16px; box-sizing: content-box;
  color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 50%;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}
.video-embed:hover .video-embed__play svg,
.video-embed:focus-visible .video-embed__play svg { transform: scale(1.08); background: rgba(0, 109, 135, 0.85); }
.video-embed__note {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.55rem;
  font-size: 0.72rem; line-height: 1.35; color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--brand-300); }
.contact-card__icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 0.98rem; margin: 0 0 0.2rem; }
.contact-card p { margin: 0; font-size: 0.93rem; color: var(--ink-500); }
.contact-card a { font-weight: 500; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-top: 1.6rem;
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--brand-600); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink-800);
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-50);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.84rem; color: var(--ink-400); margin-top: 0.9rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: #fdecea; border-color: #f2c8c0; color: #8c2f1f; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.93rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__role { color: var(--brand-300); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; color: var(--brand-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Legal pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .legal-updated { font-size: 0.85rem; color: var(--ink-400); }
.phone-note { display: block; font-size: 0.78rem; color: var(--ink-400); margin-top: 0.2rem; }
.footer-contact .phone-note { color: rgba(255, 255, 255, 0.45); }
.footer-bottom .footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.section-cta { margin-top: 2.6rem; text-align: center; }
.eyebrow--light { color: var(--brand-300); }
.eyebrow--light::before { background: var(--brand-300); }
.lightbox__caption { margin: 0; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in-view { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--brand-600);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  z-index: 300;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.6rem 1.5rem 2.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0.4rem;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-800) !important;
  }
  .nav__link[aria-current="page"] { color: var(--brand-700) !important; }
  .site-header .nav .btn--solid.btn--sm { background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px rgba(0, 109, 135, 0.3); }
  .site-header .nav .btn--solid.btn--sm:hover { background: var(--brand-700); }
  .nav .btn { margin-top: 1.4rem; width: 100%; }
  .brand__name { font-size: 0.94rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .about-photo::before { inset: 14px -14px -14px 14px; }
  .cert-band { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), 100% - 1.8rem); }
  .hero__stats { gap: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .gallery-count { width: 100%; margin-left: 0; }
  .g-card__credit { white-space: normal; line-height: 1.25; font-size: 0.72rem; }
  .lightbox__nav { width: 44px; height: 44px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
