:root {
  --paper: #f3f0e8;
  --ink: #192321;
  --muted: #66706c;
  --accent: #496b64;
  --gold: #b49a63;
  --saint-germain: #8f74b7;
  --line: rgba(25, 35, 33, .24);
  --dark: #1d2b28;
  --white: #fbfaf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(243, 240, 232, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 31px; font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.wordmark-dot { color: var(--saint-germain); }
nav { display: flex; gap: 32px; }
nav a { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
nav a:hover { color: var(--accent); }
nav a.current { color: var(--accent); }
.language-switch { justify-self: end; display: flex; gap: 7px; align-items: center; font-size: 13px; }
.language-switch button { border: 0; padding: 4px 0; background: transparent; cursor: pointer; color: var(--muted); }
.language-switch button.active { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--accent); }

.section-shell { padding: 120px clamp(24px, 7vw, 112px); }
.hero { min-height: calc(100vh - 76px); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-room { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; opacity: .42; transform: scale(1.12); transform-origin: center bottom; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(243,240,232,.96) 0%, rgba(243,240,232,.82) 56%, rgba(243,240,232,.35) 100%); }
.hero-kicker { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 34px; color: var(--accent); }
.hero h1 { margin: 0; max-width: 1130px; font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(60px, 9.5vw, 150px); line-height: .83; letter-spacing: -.055em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-left: 8vw; font-weight: 400; color: var(--accent); }
html[lang="pt-BR"] .hero h1 { font-size: clamp(55px, 8.2vw, 126px); }
.hero-bottom { margin-top: 70px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-bottom p { max-width: 590px; margin: 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.45; }
.round-link { width: 126px; height: 126px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; font-size: 14px; transition: .3s ease; }
.round-link span:last-child { font-size: 20px; }
.round-link:hover { background: var(--ink); color: var(--paper); transform: rotate(-4deg); }
.script-mark { position: absolute; right: 4vw; top: 13%; font-family: monospace; font-size: 11px; line-height: 1.8; opacity: .16; display: flex; flex-direction: column; }

.metrics { background: var(--dark); color: var(--white); display: grid; grid-template-columns: repeat(3, 1fr); padding: 58px clamp(24px, 7vw, 112px); }
.metric { min-height: 130px; padding: 10px 42px; border-left: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; justify-content: center; }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric strong { font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(54px, 6vw, 88px); line-height: 1; color: var(--gold); }
.metric span { max-width: 210px; margin-top: 12px; color: rgba(255,255,255,.72); }

.split-section { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3.2fr); gap: 60px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; gap: 14px; align-items: flex-start; padding-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.section-label span:first-child { color: var(--accent); }
.section-number { display: none; }
.section-content h2 { margin: 0 0 55px; max-width: 820px; font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(45px, 6vw, 84px); line-height: .98; letter-spacing: -.035em; }
.about-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 330px); gap: clamp(40px, 6vw, 90px); align-items: end; }
.about-lead { max-width: 900px; margin: 0 0 54px; font-size: clamp(22px, 2.35vw, 32px); line-height: 1.42; text-wrap: balance; }
.about-copy { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 46px; }
.about-copy p { margin: 0; font-size: 18px; }
.about-portrait { margin: 0; align-self: stretch; display: flex; align-items: flex-end; background: #ded8cc; overflow: hidden; }
.about-portrait img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; object-position: center bottom; }
.platform-line { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.platform-line div { margin-top: 7px; color: var(--ink); font-size: 18px; }

.services { border-bottom: 1px solid var(--line); }
.services > .section-label { margin-bottom: 55px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 300px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.service-number { color: var(--accent); font-size: 12px; }
.service-card h3 { margin: 65px 0 20px; font-family: "Newsreader", serif; font-size: clamp(32px, 4vw, 52px); font-weight: 400; }
.service-card p { max-width: 460px; margin: 0; color: var(--muted); font-size: 17px; }

.portfolio-invite { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; background: #ded8cc; border-bottom: 1px solid var(--line); }
.portfolio-invite .eyebrow { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.portfolio-invite h2 { max-width: 850px; margin: 26px 0 0; font-family: "Newsreader", serif; font-size: clamp(46px, 6vw, 86px); line-height: .96; font-weight: 400; letter-spacing: -.035em; }
.portfolio-button { width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; transition: .3s ease; }
.portfolio-button:hover { background: var(--ink); color: var(--paper); transform: rotate(-4deg); }

.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-row > div { display: flex; flex-direction: column; }
.timeline-row strong { font-size: 18px; }
.timeline-row span { margin-top: 4px; font-size: 13px; color: var(--accent); }
.timeline-row p { margin: 0; max-width: 610px; color: var(--muted); }

.expertise-band { overflow: hidden; background: var(--accent); color: var(--paper); padding: 24px 0; }
.marquee { display: flex; width: max-content; font-family: "Newsreader", serif; font-size: 28px; animation: ticker 35s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.credentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.credential { border-top: 1px solid var(--ink); padding-top: 18px; }
.credential-type { font-size: 12px; text-transform: uppercase; color: var(--accent); letter-spacing: .08em; }
.credential h3 { margin: 44px 0 10px; font-family: "Newsreader", serif; font-size: 30px; font-weight: 400; line-height: 1.08; }
.credential p { margin: 0; color: var(--muted); font-size: 14px; }

.portfolio-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: clamp(45px, 7vw, 110px); align-items: center; border-bottom: 1px solid var(--line); }
.portfolio-hero h1 { max-width: 900px; margin: 0; font-family: "Newsreader", serif; font-size: clamp(58px, 7.4vw, 112px); line-height: .89; font-weight: 400; letter-spacing: -.055em; }
.portfolio-hero p { max-width: 620px; margin: 42px 0 0; font-size: 19px; color: var(--muted); }
.portfolio-hero-video { justify-self: end; width: min(100%, 360px); background: var(--dark); box-shadow: 0 28px 70px rgba(29,43,40,.18); }
.portfolio-hero-video video { display: block; width: 100%; max-height: 620px; background: var(--dark); }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 55px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.gallery-heading span { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--accent); }
.gallery-heading p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; }
.cover-grid { columns: 4 220px; column-gap: 24px; }
.cover-item { margin: 0 0 24px; break-inside: avoid; background: #ded8cc; overflow: hidden; cursor: zoom-in; }
.cover-item img { display: block; width: 100%; height: auto; transition: transform .45s ease, filter .45s ease; }
.cover-item:hover img { transform: scale(1.025); filter: saturate(1.06); }
.cover-lightbox { width: min(92vw, 780px); height: min(92vh, 980px); padding: 0; border: 0; background: transparent; overflow: visible; }
.cover-lightbox::backdrop { background: rgba(16,20,19,.9); backdrop-filter: blur(5px); }
.cover-lightbox img { display: block; max-width: 100%; max-height: 90vh; margin: auto; object-fit: contain; box-shadow: 0 25px 70px rgba(0,0,0,.35); }
.cover-lightbox button { position: fixed; top: 24px; right: 30px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(20,20,20,.35); color: white; font-size: 28px; cursor: pointer; }
.video-layout { display: grid; grid-template-columns: minmax(230px, 360px) 1fr; gap: 70px; align-items: center; }
.screen-video { min-width: 0; overflow: hidden; background: var(--dark); box-shadow: 0 20px 55px rgba(29,43,40,.16); }
.screen-video video { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.process-montage { position: relative; aspect-ratio: 4 / 5; }
.process-montage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
.process-montage video.active { opacity: 1; }
.video-copy h2 { margin: 0 0 26px; font-family: "Newsreader", serif; font-weight: 400; font-size: clamp(45px, 6vw, 80px); line-height: .98; }
.video-copy p { max-width: 570px; color: var(--muted); font-size: 18px; }
.portfolio-contact { background: var(--accent); color: var(--paper); }
.portfolio-contact > span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.portfolio-contact h2 { max-width: 1000px; margin: 30px 0 50px; font-family: "Newsreader", serif; font-size: clamp(55px, 8vw, 115px); line-height: .9; font-weight: 400; }
.portfolio-contact a { display: inline-flex; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 18px; }

.contact { background: var(--dark); color: var(--white); }
.contact-heading span { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.contact h2 { margin: 30px 0 28px; max-width: 1050px; font-family: "Newsreader", serif; font-size: clamp(62px, 9vw, 138px); line-height: .86; font-weight: 400; letter-spacing: -.05em; }
.contact-heading p { max-width: 680px; margin: 0 0 48px; color: rgba(255,255,255,.68); font-size: 18px; }
.contact-form-wrap { max-width: 900px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.25); }
.contact-details { margin-top: 60px; }
.contact-details dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; }
.contact-details dl > div { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-details dt { margin-bottom: 7px; color: var(--gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-size: 17px; }
.contact-details a:hover { color: var(--gold); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.contact-form label { display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.contact-form .form-message { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.38); border-radius: 0; padding: 10px 0 13px; background: transparent; color: var(--white); font: 17px/1.5 "DM Sans", sans-serif; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form button { grid-column: 1 / -1; width: fit-content; min-width: 112px; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,.45); padding: 12px 20px; background: transparent; color: var(--white); cursor: pointer; transition: .25s ease; }
.contact-form button:hover { border-color: var(--gold); color: var(--gold); }
.contact-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-actions p { margin: 0; padding: 26px 0; color: rgba(255,255,255,.65); font-size: 16px; }
.contact-actions a { padding: 26px 0; font-size: clamp(18px, 2vw, 28px); display: flex; justify-content: space-between; }
.contact-actions a:hover { color: var(--gold); }

footer { padding: 25px clamp(24px, 5vw, 76px); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .about.split-section { grid-template-columns: 1fr; gap: 45px; }
  .about-profile { grid-template-columns: 1fr; align-items: start; }
  .about-portrait { width: min(100%, 340px); }
}

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: 760px; }
  .hero h1 { font-size: clamp(56px, 16vw, 105px); }
  .hero h1 em { margin-left: 0; }
  .hero-bottom { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .metric:first-child { border-top: 0; }
  .split-section { grid-template-columns: 1fr; gap: 45px; }
  .about-profile, .about-copy, .services-grid, .credentials-grid { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 360px); }
  .portfolio-invite { grid-template-columns: 1fr; }
  .portfolio-hero { grid-template-columns: 1fr; }
  .portfolio-hero-video { justify-self: start; width: min(76vw, 360px); }
  .video-layout { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-actions { grid-template-columns: 1fr; }
  .contact-details dl { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .section-shell { padding: 84px 22px; }
  .site-header { height: 64px; padding: 0 22px; }
  .hero { min-height: calc(100vh - 64px); }
  .hero-bottom { margin-top: 45px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .form-message, .contact-form button { grid-column: auto; }
  .round-link { width: 105px; height: 105px; }
  .services-grid { border-left: 0; }
  .service-card { padding: 28px 0; border-right: 0; }
  .portfolio-button { width: 130px; height: 130px; }
  .gallery-heading { flex-direction: column; }
  footer { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
}

/* Paragraph alignment shared by Portuguese and English pages. */
main p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}

.hero-bottom p, .about p, .service-card p, .timeline-row p,
.credential p, .contact p, .portfolio-hero p, .gallery-heading p,
.video-copy p, .portfolio-contact p, main p {
  text-align: justify !important;
  text-align-last: start;
  -webkit-hyphens: none;
  hyphens: none;
}

main p {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  word-break: normal;
  overflow-wrap: normal;
}

/* Keep the large opening copy naturally spaced in both languages. */
.hero-bottom p {
  text-align: left !important;
  text-align-last: auto;
}
