:root {
  --ink: #171717;
  --paper: #f7f5f0;
  --muted: #e7e4dc;
  --navy: #16324f;
  --line: rgba(23, 23, 23, 0.2);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; }
.container { width: min(100% - 3rem, 1280px); margin: 0 auto; }
.section { padding: clamp(5rem, 11vw, 10rem) 0; }
.eyebrow { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.skip-link { position: fixed; z-index: 10; top: 0.75rem; left: 0.75rem; padding: 0.5rem 0.75rem; color: var(--paper); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.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; }
/* Header */
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; }
.site-navigation { display: flex; gap: 1.75rem; font-size: 0.875rem; }
.site-navigation a { text-decoration: none; }
.site-navigation a:hover, .site-navigation a:focus-visible { text-decoration: underline; }
.menu-toggle { display: none; border: 0; padding: 0.25rem; color: var(--ink); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 1.5rem; height: 1px; margin: 0.35rem; background: currentColor; }
.home-header { background: #ffffff; }
.home-header .header-inner { gap: 2rem; }
.home-header .site-navigation a { color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.home-header .site-navigation a:hover, .home-header .site-navigation a:focus-visible { text-decoration: underline; }
.header-icons { display: flex; align-items: center; gap: 1.75rem; color: var(--navy); }
.header-icons-group { display: flex; align-items: center; gap: 1.1rem; }
.icon-link { display: inline-flex; color: var(--navy); }
.lang-switch { position: relative; }
.lang-switch-toggle { display: inline-flex; align-items: center; gap: 0.4rem; border: 0; padding: 0; background: none; color: var(--navy); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.lang-flag { font-size: 1rem; }
.lang-menu { position: absolute; top: calc(100% + 0.75rem); right: 0; z-index: 10; margin: 0; padding: 0.4rem; list-style: none; min-width: 9.5rem; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); }
.lang-option { display: flex; align-items: center; gap: 0.6rem; width: 100%; border: 0; padding: 0.55rem 0.6rem; background: none; color: var(--ink); font-size: 0.85rem; text-align: left; cursor: pointer; }
.lang-option:hover, .lang-option:focus-visible { background: var(--muted); }
.lang-option.is-active { font-weight: 700; }
/* Footer */
.home-footer { border-top: 1px solid var(--line); }
.home-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.home-footer .footer-brand .brand { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; }
.home-footer .footer-brand p:last-child { max-width: 18rem; font-size: 0.85rem; color: rgba(23, 23, 23, 0.65); }
.home-footer .footer-newsletter .eyebrow { margin-bottom: 0.6rem; }
.home-footer .newsletter-field { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; min-width: 15rem; }
.newsletter-field input { flex: 1; border: 0; padding: 0.25rem 0; background: transparent; font: inherit; color: inherit; }
.newsletter-field input::placeholder { color: rgba(23, 23, 23, 0.45); }
.newsletter-field button { flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.footer-links-inline { display: flex; gap: 2rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links-inline a { text-decoration: none; }
.footer-links-inline a:hover, .footer-links-inline a:focus-visible { text-decoration: underline; }
/* Lab Assistant */
.lab-assistant { position: fixed; z-index: 20; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }
.lab-assistant-launcher { display: flex; align-items: center; gap: 0.75rem; }
.lab-assistant-hint { margin: 0; max-width: 12rem; padding: 0.65rem 1rem; color: var(--ink); background: var(--paper); border-radius: 999px; font-size: 0.8rem; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }
.lab-assistant-trigger { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; border: 0; padding: 0; color: var(--paper); background: var(--ink); text-align: center; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22); }
.lab-assistant-trigger:hover, .lab-assistant-trigger:focus-visible { background: var(--navy); }
.lab-assistant-panel { width: min(20rem, calc(100vw - 2rem)); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16); }
.lab-assistant-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.lab-assistant-header p { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lab-assistant-controls { display: flex; gap: 0.5rem; }
.lab-assistant-controls button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; line-height: 1; }
.lab-assistant-body { padding: 1.1rem; }
.lab-assistant-greeting { margin: 0 0 1rem; font-size: 0.9rem; }
.lab-assistant-menu { display: flex; flex-direction: column; }
.lab-assistant-menu a { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.lab-assistant-menu a:hover, .lab-assistant-menu a:focus-visible { text-decoration: underline; }
.lab-assistant-form { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-top: 1px solid var(--line); }
.lab-assistant-form input { flex: 1; border: 0; padding: 0; background: transparent; font: inherit; font-size: 0.85rem; color: var(--ink); }
.lab-assistant-form input::placeholder { color: rgba(23, 23, 23, 0.45); }
.lab-assistant-form button { flex-shrink: 0; border: 0; padding: 0; background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
/* About page */
.about-hero { display: grid; grid-template-columns: minmax(20rem, 38%) 1fr; min-height: clamp(28rem, 78vh, 42rem); }
.about-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem); background: #e8ecf0; }
.about-hero-copy .eyebrow { color: rgba(22, 50, 79, 0.65); }
.about-hero-heading { max-width: 13ch; margin: 0; color: var(--navy); font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.about-rule { width: 2rem; margin: 1.5rem 0; border: none; border-top: 1px solid rgba(22, 50, 79, 0.35); }
.about-hero-lead { max-width: 26rem; margin: 0 0 2rem; color: rgba(22, 50, 79, 0.85); font-size: 0.95rem; line-height: 1.6; }
.about-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--navy); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(22, 50, 79, 0.35); padding-bottom: 0.3rem; width: fit-content; }
.about-link:hover, .about-link:focus-visible { border-color: var(--navy); }
.about-hero-photo { position: relative; overflow: hidden; background: linear-gradient(160deg, #cbdae4, #8fa9b8); }
.about-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-heading { margin: 0; color: var(--navy); font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; font-size: clamp(1.9rem, 3vw, 2.6rem); }
.about-philosophy { padding: clamp(4rem, 9vw, 7rem) 0; }
.about-philosophy-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-philosophy-photo { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: linear-gradient(160deg, #ece7de, #cdbfae); }
.about-philosophy-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-philosophy-copy .eyebrow { color: rgba(22, 50, 79, 0.65); }
.about-philosophy-lead { max-width: 34rem; margin: 1.5rem 0 0; color: rgba(22, 50, 79, 0.8); font-size: 0.95rem; line-height: 1.6; }
.about-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.about-stat span { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; color: rgba(22, 50, 79, 0.55); }
.about-stat h3 { margin: 0 0 0.4rem; color: var(--navy); font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.about-stat p { margin: 0; font-size: 0.85rem; color: rgba(22, 50, 79, 0.7); }
.about-whatwedo { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--paper); }
.about-whatwedo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-whatwedo-copy .eyebrow { color: rgba(22, 50, 79, 0.65); margin-bottom: 1.5rem; }
.about-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.about-list-text span { display: block; margin-bottom: 0.35rem; font-size: 0.75rem; color: rgba(22, 50, 79, 0.55); }
.about-list-text h3 { margin: 0 0 0.35rem; color: var(--navy); font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.about-list-text p { margin: 0; font-size: 0.85rem; line-height: 1.5; max-width: 30ch; color: rgba(22, 50, 79, 0.7); }
.about-list-icon { flex-shrink: 0; font-size: 1.25rem; line-height: 1; color: rgba(22, 50, 79, 0.4); }

/* Fix: esta regra estava em falta — era o que fazia a imagem ficar "muito larga" */
.about-whatwedo-photo { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; align-self: stretch; background: linear-gradient(160deg, #cbdae4, #8fa9b8); }
.about-whatwedo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Rooted in curiosity / Driven by creativity */
.about-cta { padding: clamp(3rem, 6vw, 5rem) 0; }
.about-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--muted); padding: clamp(2.5rem, 5vw, 4rem); }
.about-cta-grid h2 { max-width: 14ch; }
.about-cta-grid p { margin: 0; max-width: 34rem; font-size: 0.95rem; line-height: 1.7; color: rgba(23, 23, 23, 0.75); }

/* Responsive */
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; min-height: auto; }
  .about-hero-photo { min-height: 20rem; }
  .about-philosophy-grid { grid-template-columns: 1fr; }
  .about-stats-row { grid-template-columns: 1fr; gap: 2rem; }
  .about-whatwedo-grid { grid-template-columns: 1fr; }
  .about-whatwedo-photo { order: -1; min-height: 18rem; }
  .about-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 2rem, 1280px); }
  .menu-toggle { display: block; }
  .site-navigation { position: absolute; top: 4.5rem; right: 0; left: 0; display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-navigation.is-open { display: flex; }
  .home-footer-inner { flex-direction: column; align-items: flex-start; }
  .lab-assistant { right: 1rem; bottom: 1rem; }
  .lab-assistant-hint { display: none; }
  .lab-assistant-trigger { width: 3.5rem; height: 3.5rem; font-size: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }