/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --bg: #070506;
  --text: #f3e8d8;
  --text-soft: #d6c3a5;
  --text-muted: #a18d74;
  --gold: #c2a06b;
  --line: rgba(194, 160, 107, 0.16);
  --radius: 20px;
  --nav-border: rgba(194, 160, 107, 0.12);
  --nav-offset: 120px;
  --page-gutter: clamp(14px, 2.4vw, 28px);
  --content-max: 1180px;
  --content-max-wide: 1360px;
  --hero-max: 1100px;
  --works-max: 980px;
}

/* =========================================================
   Base reset
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(194, 160, 107, 0.05), transparent 34%),
    linear-gradient(180deg, #080506 0%, #060405 100%);
}

img {
  display: block;
  max-width: 100%;
}

img,
a,
.work-content,
.work-content p,
.work-media {
  min-width: 0;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   Navigation
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  width: 100%;
  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    clamp(12px, 2vw, 24px)
    16px;
  border-bottom: 1px solid var(--nav-border);
  background: linear-gradient(to bottom, rgba(10, 7, 8, 0.92), rgba(8, 6, 7, 0.78));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: translateZ(0);
  will-change: transform;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 10px);
  flex-wrap: nowrap;
  width: min(var(--content-max), 100%);
  min-width: 0;
  margin-inline: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: clamp(4px, 0.6vw, 10px);
  min-width: 0;
  padding: clamp(3px, 0.45vw, 6px) clamp(8px, 1vw, 14px);
  list-style: none;
  border: 1px solid rgba(194, 160, 107, 0.08);
  border-radius: 999px;
  background: rgba(14, 10, 11, 0.58);
  overflow: visible;
}

.nav-links li {
  display: flex;
  flex: 1 1 auto;
  min-width: fit-content;
  contain: layout paint style;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: max-content;
  min-height: 38px;
  padding: 0 clamp(6px, 0.9vw, 14px);
  color: #8f6e48;
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: clamp(0.4px, 0.12vw, 1.6px);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s ease, opacity 0.24s ease;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.nav-links a span {
  display: block;
  white-space: nowrap;
  transform-origin: center;
  transition:
    transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
    text-shadow 0.3s ease,
    opacity 0.24s ease;
  will-change: transform;
}

.nav-links a:hover {
  color: #c7a16f;
}

.nav-links a:hover span {
  transform: scale(1.08) translateZ(0);
  text-shadow: 0 0 12px rgba(194, 160, 107, 0.14);
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(
    to right,
    rgba(237, 223, 196, 0.12),
    rgba(194, 160, 107, 0.95),
    rgba(237, 223, 196, 0.12)
  );
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.nav-links a.active {
  color: #e4c28f;
}

.nav-links a.active span {
  transform: scale(1.16) translateZ(0);
  text-shadow: 0 0 16px rgba(194, 160, 107, 0.18);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(194, 160, 107, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    rgba(14, 10, 11, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
  color: #e8d8be;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2.2px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 218, 188, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(18, 12, 14, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.lang-toggle:focus-visible {
  outline: none;
  border-color: #e8dabc;
  box-shadow:
    0 0 0 3px rgba(194, 160, 107, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.lang-toggle__option {
  position: relative;
  color: #7f6240;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.72;
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.lang-toggle[data-lang='pt'] .lang-toggle__option--pt,
.lang-toggle[data-lang='en'] .lang-toggle__option--en {
  color: #e4c28f;
  text-shadow: 0 0 12px rgba(194, 160, 107, 0.24);
  opacity: 1;
  transform: translateY(-0.5px);
}

.lang-toggle[data-lang='pt'] .lang-toggle__option--en,
.lang-toggle[data-lang='en'] .lang-toggle__option--pt {
  color: #8a6a45;
  text-shadow: none;
  opacity: 0.62;
}

.lang-toggle__divider {
  width: 1px;
  height: 14px;
  background: rgba(194, 160, 107, 0.24);
}

/* =========================================================
   Section shell
   ========================================================= */
section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.42s ease, visibility 0s linear 0.42s;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

section::before,
section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

section::after {
  z-index: 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 56%);
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.52s ease,
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

section.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  z-index: 2;
  transition: opacity 0.42s ease;
}

section.active::after {
  opacity: 0.32;
  transform: scale(1);
}

.hero,
.about,
.services,
.works {
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before,
.about::before,
.services::before,
.works::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 6, 0.46) 0%, rgba(12, 8, 9, 0.28) 30%, rgba(7, 5, 6, 0.72) 100%),
    radial-gradient(circle at top center, rgba(194, 160, 107, 0.08), transparent 42%);
}

.hero {
  background: url('Backgrounds/hero.jpg') no-repeat center / cover;
}

.about {
  background-image: url('Backgrounds/about-bg.jpg');
}

.services {
  background-image: url('Backgrounds/services-bg.jpg');
}

.works {
  background-image: url('Backgrounds/works-bg.jpg');
}

.section-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    calc(var(--nav-offset) + 28px)
    max(var(--page-gutter), calc(env(safe-area-inset-right, 0px) + var(--page-gutter)))
    120px
    max(var(--page-gutter), calc(env(safe-area-inset-left, 0px) + var(--page-gutter)));
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.section-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.section-frame,
.about-grid,
.services-stack,
.works-list,
.about-panel,
.service-card,
.work-card,
.scope-block,
.philosophy-block,
.works-cta {
  width: 100%;
  max-width: 100%;
}

.section-frame {
  position: relative;
  z-index: 2;
  width: min(var(--content-max), 100%);
}

.scroll-ui {
  position: absolute;
  top: 118px;
  right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: 26px;
  z-index: 6;
  width: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(194, 160, 107, 0.12);
  box-shadow: 0 0 10px rgba(194, 160, 107, 0.06);
  opacity: 0.76;
  pointer-events: none;
}

.scroll-ui.is-hidden {
  opacity: 0 !important;
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(239, 226, 200, 0.96), rgba(194, 160, 107, 0.42));
  box-shadow: 0 0 10px rgba(194, 160, 107, 0.2);
}

/* =========================================================
   Hero
   ========================================================= */
.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--hero-max), calc(100% - (var(--page-gutter) * 2)));
  max-width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: min(1100px, 100%);
  opacity: 0;
  transform: scale(0.965) translateY(34px) translateZ(0);
  animation: heroReveal 1.15s cubic-bezier(0.18, 0.84, 0.28, 1) forwards 0.14s;
  will-change: transform, opacity;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(16px) translateZ(0);
  animation: heroItemReveal 0.78s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.hero-content .title {
  animation-delay: 0.72s;
}

.hero-content .subtitle {
  animation-delay: 0.9s;
}

.title,
.section-heading,
.service-card h3,
.work-content h3,
.works-cta h4 {
  font-family: 'Cormorant Garamond', serif;
}

.title {
  color: #674c2b;
  font-size: clamp(42px, 7vw, 128px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 1px;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.24),
    0 0 12px rgba(194, 160, 107, 0.1);
}

.subtitle {
  margin-top: 16px;
  color: #5a4326;
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 11px;
  text-transform: uppercase;
}

/* =========================================================
   Reusable content blocks
   ========================================================= */
.section-reveal {
  opacity: 0;
  transform: translateY(12px) translateZ(0);
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

section.active .section-reveal {
  opacity: 1;
  transform: translateY(0);
}

section.active .delay-1 {
  transition-delay: 0.03s;
}

section.active .delay-2 {
  transition-delay: 0.07s;
}

section.active .delay-3 {
  transition-delay: 0.11s;
}

section.active .delay-4 {
  transition-delay: 0.15s;
}

.section-kicker,
.about-signature {
  text-align: center;
}

.section-kicker,
.philosophy-title,
.process-index,
.project-scope,
.work-eyebrow {
  color: #d7ba8d;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
}

.section-kicker,
.philosophy-title {
  font-size: 12px;
  letter-spacing: 5px;
}

.section-kicker {
  display: block;
  margin-bottom: 18px;
}

.section-heading {
  color: #fee6be;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.15;
}

.section-divider {
  width: 130px;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(to right, rgba(230, 211, 180, 0.96), rgba(194, 160, 107, 0.14));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
}

.about-panel,
.service-card,
.scope-block,
.philosophy-block,
.work-card,
.works-cta {
  border: 1px solid rgba(194, 160, 107, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(to bottom, rgba(34, 19, 22, 0.9), rgba(12, 9, 10, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.22);
}

.about-copy {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.95;
}

.about-copy + .about-copy {
  margin-top: 18px;
}

.about-values {
  display: grid;
  gap: 14px;
}

.value-item {
  padding: 18px;
  border: 1px solid rgba(194, 160, 107, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(88, 47, 44, 0.2), rgba(15, 10, 12, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: #e3d0af;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-align: center;
}

.about-signature {
  margin-top: 26px;
  color: #e8d8be;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 4px;
}

.philosophy-block {
  margin-top: 34px;
  padding: 40px 34px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(to right, rgba(35, 20, 23, 0.92), rgba(12, 9, 10, 0.84));
  text-align: center;
}

.philosophy-quote {
  max-width: 24ch;
  margin: 18px auto 0;
  color: #fee6be;
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.28;
  text-wrap: balance;
}

.philosophy-copy {
  max-width: 58ch;
  margin: 16px auto 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
  text-wrap: pretty;
}

.services-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 100%;
  padding: 40px 36px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 20%),
    linear-gradient(to bottom, rgba(33, 18, 21, 0.92), rgba(11, 8, 9, 0.84));
}

.service-card h3 {
  color: #fee6be;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 1.4px;
}

.service-tags {
  margin-top: 14px;
  color: #c1a277;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.service-main {
  margin-top: 18px;
  color: #e7dbc5;
  font-size: 14px;
  line-height: 1.9;
}

.service-sub {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}

.process-index,
.project-scope {
  font-size: 12px;
  letter-spacing: 3px;
}

.scope-block {
  margin-top: 38px;
  padding: 30px 28px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(to bottom, rgba(35, 20, 23, 0.9), rgba(12, 9, 10, 0.82));
}

.project-scope {
  color: #dfc79e;
  text-align: center;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.scope-list span,
.work-meta span {
  border: 1px solid rgba(194, 160, 107, 0.16);
  border-radius: 999px;
  color: #dac6a5;
  background: linear-gradient(180deg, rgba(96, 52, 48, 0.14), rgba(18, 11, 13, 0.2));
}

.scope-list span {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1;
}

.works-list {
  display: grid;
  gap: 26px;
  width: min(var(--works-max), 100%);
}

.work-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(to bottom, rgba(31, 18, 20, 0.94), rgba(10, 8, 9, 0.86));
  overflow: hidden;
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(194, 160, 107, 0.1);
  border-radius: 18px;
  background: #120c0d;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.02) saturate(1.02) contrast(1.02);
}

.work-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.work-eyebrow {
  color: #c1a277;
  font-size: 11px;
  letter-spacing: 2.2px;
}

.work-content h3 {
  margin-top: 12px;
  color: #fee6be;
  font-size: 28px;
  line-height: 1.15;
}

.work-content p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.work-meta span {
  padding: 9px 12px;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.work-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.work-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #c2a06b;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(194, 160, 107, 0.08), rgba(194, 160, 107, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #e9d8ba;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.work-btn:hover {
  border-color: #e8dabc;
  background: linear-gradient(180deg, #e8dabc 0%, #c2a06b 100%);
  color: #110b0c;
  transform: translateY(-1px);
}

.works-cta {
  margin-top: 30px;
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(to right, rgba(34, 18, 21, 0.94), rgba(12, 9, 10, 0.84));
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.2);
}

.works-cta h4 {
  color: #fee6be;
  font-size: 24px;
  letter-spacing: 1px;
}

.works-cta p {
  max-width: 680px;
  margin-top: 12px;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.9;
}

.works-cta .work-btn {
  margin-top: 18px;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(0.965) translateY(34px) translateZ(0);
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0);
  }
}

@keyframes heroItemReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRevealMobile {
  0% {
    opacity: 0;
    transform: scale(0.985) translateY(20px) translateZ(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0);
  }
}

@keyframes heroItemRevealMobile {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav-links {
    gap: clamp(2px, 0.35vw, 6px);
  }

  .nav-links a {
    padding: 0 clamp(3px, 0.45vw, 8px);
    font-size: clamp(10px, 1.2vw, 13px);
    letter-spacing: clamp(0.35px, 0.12vw, 1.4px);
  }

  .subtitle {
    letter-spacing: 7px;
  }

  .services-stack {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow: hidden;
  }

  :root {
    --page-gutter: 16px;
  }

  .navbar {
    padding:
      calc(15px + env(safe-area-inset-top, 0px))
      max(10px, calc(env(safe-area-inset-right, 0px) + 10px))
      12px
      max(10px, calc(env(safe-area-inset-left, 0px) + 10px));
    background: rgba(10, 8, 9, 0.95);
  }

  .nav-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(var(--content-max), 100%);
  }

  .lang-toggle {
    justify-self: center;
    order: -1;
  }

  .nav-links {
    gap: 4px;
    padding: 4px 8px;
  }

  .nav-links li {
    min-width: 0;
  }

  .nav-links a {
    min-width: 0;
    min-height: 32px;
    padding: 0 clamp(6px, 1.1vw, 10px);
    font-size: clamp(10px, 1.8vw, 12px);
    letter-spacing: 0.3px;
  }

  .nav-links a span {
    transition: transform 0.24s ease;
  }

  .nav-links a:hover span,
  .nav-links a.active span {
    transform: scale(1.05) translateZ(0);
    text-shadow: none;
  }

  .nav-links a::after {
    right: 10px;
    bottom: 3px;
    left: 10px;
  }

  .lang-toggle {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: 0.8px;
  }

  section {
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  section::after {
    transition: opacity 0.28s ease, transform 0.38s ease;
  }

  .title {
    font-size: clamp(38px, 9vw, 72px);
  }

  .subtitle {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .section-scroll {
    padding:
      calc(var(--nav-offset) + 18px)
      max(16px, calc(env(safe-area-inset-right, 0px) + 16px))
      96px
      max(16px, calc(env(safe-area-inset-left, 0px) + 16px));
  }

  .scroll-ui {
    top: 108px;
    right: 9px;
    bottom: 22px;
  }

  .section-heading {
    font-size: clamp(28px, 9vw, 44px);
  }

  .section-reveal {
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.18s ease,
      transform 0.2s ease;
  }

  section.active .delay-1,
  section.active .delay-2,
  section.active .delay-3,
  section.active .delay-4 {
    transition-delay: 0s;
  }

  .about-panel {
    padding: 32px 24px;
  }

  .about-copy {
    font-size: 14px;
    line-height: 1.88;
  }

  .service-card {
    padding: 30px 24px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .work-card {
    gap: 20px;
    padding: 16px;
  }

  .work-content,
  .work-actions {
    align-items: flex-start;
  }

  .work-content h3 {
    font-size: 24px;
  }

  .works-cta,
  .about-panel,
  .service-card,
  .work-card,
  .scope-block,
  .philosophy-block {
    border-radius: 20px;
  }

  .works-cta {
    padding: 22px 18px;
  }

  .philosophy-block {
    padding: 30px 24px;
  }

  .philosophy-quote {
    max-width: 100%;
    font-size: clamp(22px, 8vw, 32px);
  }
}

@media (max-width: 767px) {
  .hero-content,
  .hero-content > * {
    animation: none;
  }

  .hero-content {
    opacity: 0;
    filter: none;
    transform: scale(0.985) translateY(20px) translateZ(0);
    will-change: transform, opacity;
  }

  .hero-content.is-mobile-intro {
    animation: heroRevealMobile 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .hero-content.is-mobile-intro > * {
    opacity: 0;
    transform: translateY(12px);
    animation: heroItemRevealMobile 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .hero-content.is-mobile-intro .title {
    animation-delay: 0.28s;
  }

  .hero-content.is-mobile-intro .subtitle {
    animation-delay: 0.42s;
  }

  .section-reveal,
  .work-btn,
  .nav-links a::after {
    animation: none !important;
  }

  .scroll-ui {
    display: none;
  }

  .work-media img {
    filter: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 14px;
  }

  .hero-shell {
    width: min(100%, calc(100% - 28px));
    padding-inline: 14px;
  }

  .section-scroll {
    padding:
      calc(var(--nav-offset) + 14px)
      max(14px, calc(env(safe-area-inset-right, 0px) + 14px))
      96px
      max(14px, calc(env(safe-area-inset-left, 0px) + 14px));
  }

  .about-panel,
  .service-card {
    padding-inline: 20px;
  }

  .work-card {
    padding: 14px;
  }

  .work-content p,
  .about-copy {
    font-size: 13.5px;
  }

  .scope-list {
    gap: 10px;
  }

  .scope-list span {
    font-size: 11px;
  }

  .value-item {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .nav-shell {
    gap: 3px;
  }

  .nav-links {
    gap: 1px;
    padding: 3px;
  }

  .nav-links a {
    min-height: 28px;
    padding: 0 2px;
    font-size: clamp(8px, 2.4vw, 10px);
    letter-spacing: 0.35px;
  }

  .lang-toggle {
    min-height: 28px;
    padding: 0 6px;
    font-size: 7px;
    letter-spacing: 0.5px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: clamp(22px, 2.8vw, 40px);
    --content-max: 1240px;
    --hero-max: 1180px;
    --works-max: 1040px;
  }

  /* Mantém os cards da seção About empilhados em telas grandes. */
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1440px) {
  :root {
    --page-gutter: clamp(28px, 3.2vw, 56px);
    --content-max: 1360px;
    --hero-max: 1320px;
    --works-max: 1140px;
  }

  .nav-shell,
  .section-frame {
    width: min(var(--content-max-wide), 100%);
  }

  .hero-shell {
    width: min(var(--hero-max), calc(100% - (var(--page-gutter) * 2)));
  }

  .title {
    font-size: clamp(72px, 6vw, 142px);
  }

  .subtitle {
    letter-spacing: 12px;
  }

  .section-heading {
    font-size: clamp(42px, 3.6vw, 72px);
  }

  .about-copy,
  .work-content p,
  .works-cta p,
  .service-main,
  .service-sub {
    font-size: 15px;
  }

  .service-card,
  .about-panel {
    padding: 52px 44px;
  }

  .work-card {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    padding: 24px;
  }
}

@media (min-width: 1680px) {
  :root {
    --content-max: 1480px;
    --content-max-wide: 1520px;
    --hero-max: 1440px;
    --works-max: 1240px;
  }

  .section-scroll {
    padding-top: calc(var(--nav-offset) + 40px);
    padding-bottom: 140px;
  }

  .title {
    font-size: clamp(84px, 5.4vw, 156px);
  }

  .section-heading {
    font-size: clamp(48px, 3.3vw, 76px);
  }
}

@media (min-width: 2200px) {
  :root {
    --page-gutter: clamp(40px, 3.6vw, 84px);
    --content-max: 1680px;
    --content-max-wide: 1720px;
    --hero-max: 1600px;
    --works-max: 1360px;
  }

  .nav-shell,
  .section-frame {
    width: min(var(--content-max-wide), 100%);
  }

  .hero-shell {
    width: min(var(--hero-max), calc(100% - (var(--page-gutter) * 2)));
  }

  .title {
    font-size: clamp(96px, 5vw, 180px);
  }

  .section-heading {
    font-size: clamp(54px, 3vw, 84px);
  }
}

@media (max-width: 390px) {
  .navbar {
    padding-right: max(8px, calc(env(safe-area-inset-right, 0px) + 8px));
    padding-left: max(8px, calc(env(safe-area-inset-left, 0px) + 8px));
  }

  .nav-shell {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: space-between;
    padding: 4px;
  }

  .nav-links li {
    flex: 1 1 0;
  }

  .lang-toggle {
    order: 1;
    align-self: center;
    min-height: 30px;
    margin-inline: auto;
  }

  .title {
    font-size: clamp(28px, 11.5vw, 44px);
    line-height: 1.05;
  }

  .subtitle {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .section-heading {
    font-size: clamp(22px, 9vw, 30px);
    line-height: 1.12;
  }

  .about-panel,
  .service-card,
  .scope-block,
  .philosophy-block,
  .works-cta {
    padding: 18px 16px;
  }

  .work-card {
    gap: 16px;
    padding: 12px;
  }

  .work-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 1.6px;
  }

.nav-links {
    gap: 2px;
    padding-inline: 6px;
  }

  .nav-links a {
    padding-inline: 4px;
    font-size: clamp(9px, 2.6vw, 10px);
    letter-spacing: 0.1px;
  }
}

@media (max-width: 280px) {
  :root {
    --page-gutter: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 4px;
    border-radius: 18px;
  }

  .nav-links li {
    flex: 1 1 calc(50% - 4px);
  }

  .nav-links a {
    min-height: 30px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .lang-toggle {
    width: 100%;
    border-radius: 18px;
  }

  .title {
    font-size: clamp(22px, 10vw, 32px);
  }

  .subtitle {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .section-scroll {
    padding-top: calc(var(--nav-offset) + 12px);
    padding-bottom: 72px;
  }

  .work-meta,
  .scope-list,
  .work-actions {
    gap: 8px;
  }

  .scope-list span,
  .work-meta span {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .hero-content,
  .section-reveal,
  section,
  .nav-links a,
  .work-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Ajustes finos adicionais */
@media (min-width: 1600px) {
  .nav-shell {
    width: min(var(--content-max-wide), 100%);
  }

  .hero-shell {
    width: min(1400px, calc(100% - (var(--page-gutter) * 2)));
  }
}

@media (max-width: 640px) {
  .nav-links a span {
    transform: none !important;
    text-shadow: none !important;
  }
}

/* =========================================================
   Correção final de consistência de layout
   About empilhado + Works alinhado em todos os dispositivos.
   ========================================================= */

.about-grid {
  grid-template-columns: 1fr !important;
}

.works-list,
.works-cta {
  width: 100% !important;
  max-width: 100% !important;
}

.work-card {
  width: 100% !important;
}

.work-media,
.work-content {
  min-width: 0;
}

@media (max-width: 980px) {
  .work-card {
    grid-template-columns: 1fr !important;
  }
}
