:root {
  --blue: #002d68;
  --blue-dark: #002452;
  --blue-deep: #001329;
  --blue-support: #114989;
  --gray: #6e6e6e;
  --gray-mid: #969ba0;
  --gray-light: #e5e8eb;
  --gray-soft: #f4f6f8;
  --white: #ffffff;
  --black: #141414;
  --warm: #c8842c;
  --green: #1fc85c;
  --green-dark: #129447;
  --shell: min(1280px, calc(100vw - 64px));
  --header-height: 82px;
  --radius: 20px;
  --transition: 280ms cubic-bezier(.2,.7,.2,1);
  --shadow: 0 24px 70px rgba(0, 24, 58, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.section-shell,
.header-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 9999;
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-180%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header.is-scrolled,
.site-header.is-solid {
  height: 72px;
  background: rgba(0, 19, 41, .94);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.header-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img { width: 164px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--white);
}
.nav-link {
  position: relative;
  font-family: Montserrat, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  opacity: .76;
  transition: opacity var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--warm);
  transition: right var(--transition);
}
.nav-link:hover,
.nav-link.is-active { opacity: 1; }
.nav-link.is-active::after { right: 0; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
}
.language-switcher button {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: transparent;
  font-size: .66rem;
  font-weight: 700;
}
.language-switcher button.is-active {
  color: var(--blue-dark);
  background: var(--white);
}
.header-cta {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 700;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #042c15;
  background: linear-gradient(135deg, #2adc6a, #17b951);
  box-shadow: 0 14px 34px rgba(31, 200, 92, .22);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 200, 92, .3);
}
.menu-toggle { display: none; }

.eyebrow {
  margin: 0 0 20px;
  color: rgba(255,255,255,.82);
  font-family: Montserrat, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-blue { color: var(--blue-support); }
.eyebrow-light { color: #79aee4; }

.hero-home {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
  overflow: hidden;
}
.hero-home-media,
.hero-home-noise {
  position: absolute;
  inset: 0;
}
.hero-home-media {
  background:
    linear-gradient(90deg, rgba(0,18,41,.96) 0%, rgba(0,28,63,.78) 46%, rgba(0,18,41,.24) 100%),
    linear-gradient(0deg, rgba(0,15,34,.64), rgba(0,15,34,.08) 58%),
    url("assets/job-studio-hero.webp") center/cover no-repeat;
  transform: scale(1.015);
}
.hero-home-noise {
  opacity: .1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.hero-home-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}
.hero-copy { max-width: 760px; }
.hero-copy h1 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(3.8rem, 6.1vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .93;
  text-transform: uppercase;
}
.hero-copy h1 span { display: block; }
.hero-copy h1 .muted { color: #c5ccd4; }
.hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.04);
}
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-dark {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 14px 34px rgba(0,36,82,.18);
}
.button-whatsapp {
  width: 100%;
  color: #052d17;
  background: linear-gradient(135deg, #2adc6a, #17b951);
  box-shadow: 0 16px 36px rgba(31, 200, 92, .2);
}
.button-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

.compact-intro {
  padding: clamp(88px, 9vw, 132px) 0;
  background: var(--gray-light);
}
.compact-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .72fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: end;
}
.compact-intro-title h2,
.flow-copy h2,
.home-cta h2,
.contact-hero h1,
.form-heading h2,
.contact-options-copy h2 {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  letter-spacing: -.045em;
}
.compact-intro-title h2 {
  color: var(--blue-dark);
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: .98;
}
.compact-intro-title h2 span,
.compact-intro-title h2 em { display: block; }
.compact-intro-title h2 em { color: var(--blue-support); font-style: normal; }
.compact-intro-copy { display: grid; gap: 22px; }
.compact-intro-copy p { margin: 0; color: #52606e; line-height: 1.75; }
.compact-intro-copy .lead {
  color: var(--blue-dark);
  font-family: Montserrat, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.5;
}

.flow-section {
  padding: clamp(90px, 10vw, 142px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(17,73,137,.22), transparent 34%),
    var(--blue-deep);
}
.flow-grid {
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(0, 1fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: center;
}
.flow-visual { position: relative; min-height: 610px; }
.flow-visual figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.flow-main-image {
  position: absolute;
  inset: 0 12% 10% 0;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}
.flow-main-image img,
.flow-secondary-image img { width: 100%; height: 100%; object-fit: cover; }
.flow-secondary-image {
  position: absolute;
  width: 46%;
  aspect-ratio: 1.3;
  right: 0;
  bottom: 0;
  border: 8px solid var(--blue-deep);
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
.flow-copy h2 {
  max-width: 680px;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: 1;
}
.flow-steps { display: grid; gap: 0; margin-top: 42px; }
.flow-step {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.flow-step:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.flow-step > span {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 7px rgba(200,132,44,.1);
}
.flow-step h3 {
  margin: 0 0 8px;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
}
.flow-step p { margin: 0; color: #b9c5d1; line-height: 1.65; }

.home-cta {
  padding: clamp(82px, 8vw, 116px) 0;
  background: var(--gray-light);
}
.home-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .68fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: end;
}
.home-cta h2 {
  max-width: 760px;
  color: var(--blue-dark);
  font-size: clamp(2.6rem, 4.2vw, 4.5rem);
  line-height: 1;
}
.home-cta-action { display: grid; justify-items: start; gap: 24px; }
.home-cta-action p { margin: 0; color: #566472; line-height: 1.7; }

.contact-page { padding-top: 72px; }
.contact-hero {
  position: relative;
  min-height: 56svh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--blue-deep);
  overflow: hidden;
}
.contact-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,19,41,.96) 0%, rgba(0,27,61,.75) 54%, rgba(0,19,41,.32) 100%),
    url("assets/job-studio-portrait.webp") center 45%/cover no-repeat;
}
.contact-hero-content { position: relative; z-index: 1; padding-block: 80px; }
.contact-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .98;
}
.contact-hero-content > p:last-child {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 1.08rem;
  line-height: 1.7;
}
.contact-panel-section {
  padding: clamp(82px, 9vw, 132px) 0;
  background: var(--gray-light);
}
.contact-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: start;
}
.project-form,
.contact-options {
  border: 1px solid rgba(0,45,104,.13);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.project-form { display: grid; gap: 20px; padding: clamp(28px, 4vw, 48px); }
.form-heading { margin-bottom: 8px; }
.form-heading h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
}
.form-heading > p:last-child { margin: 18px 0 0; color: #5b6875; line-height: 1.7; }
.project-form label { display: grid; gap: 9px; }
.project-form label > span {
  color: var(--blue-dark);
  font-family: Montserrat, sans-serif;
  font-size: .78rem;
  font-weight: 600;
}
.project-form input,
.project-form textarea {
  width: 100%;
  border: 1px solid #c3ccd5;
  border-radius: 14px;
  color: var(--black);
  background: rgba(255,255,255,.7);
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.project-form input { min-height: 52px; padding: 0 16px; }
.project-form textarea { resize: vertical; min-height: 140px; padding: 15px 16px; }
.project-form input:focus,
.project-form textarea:focus {
  border-color: var(--blue-support);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(17,73,137,.09);
}
.contact-options { overflow: hidden; }
.contact-options figure { margin: 0; height: 310px; overflow: hidden; }
.contact-options figure img { width: 100%; height: 100%; object-fit: cover; }
.contact-options-copy { display: grid; gap: 14px; padding: 30px; }
.contact-options-copy h2 {
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 1.08;
}
.contact-options-copy > p { margin: 0 0 8px; color: #5a6875; line-height: 1.68; }
.contact-channel {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 0 18px;
  border-radius: 14px;
  font-family: Montserrat, sans-serif;
  font-size: .84rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-channel:hover { transform: translateY(-2px); }
.contact-channel svg { width: 22px; height: 22px; fill: currentColor; }
.whatsapp-channel {
  border: 0;
  color: #042c15;
  background: linear-gradient(135deg, #2adc6a, #17b951);
  box-shadow: 0 14px 32px rgba(31,200,92,.18);
}
.email-channel {
  border: 1px solid #bdc8d2;
  color: var(--blue-dark);
  background: rgba(255,255,255,.72);
}
.email-channel:hover { background: var(--white); box-shadow: 0 12px 28px rgba(0,36,82,.08); }
.contact-options-copy small { margin-top: 4px; color: #788490; line-height: 1.5; }

.site-footer {
  padding: 34px 0;
  border-top: 1px solid #d1d8df;
  background: var(--white);
}
.footer-content {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.footer-content p { margin: 0; color: #75818d; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  :root { --shell: min(100% - 40px, 940px); }
  .site-nav { gap: 18px; }
  .compact-intro-grid,
  .flow-grid,
  .home-cta-grid,
  .contact-panel-grid { grid-template-columns: 1fr; }
  .flow-grid { gap: 64px; }
  .flow-visual { min-height: 560px; }
  .home-cta-action { max-width: 560px; }
  .contact-options { max-width: 680px; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; --shell: calc(100vw - 32px); }
  .brand img { width: 142px; }
  .menu-toggle {
    z-index: 1002;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 0;
    color: var(--white);
    background: transparent;
  }
  .menu-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform var(--transition); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(0,19,41,.97);
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition);
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .header-cta { width: 100%; }
  .language-switcher { justify-self: start; }

  .hero-home { min-height: 86svh; }
  .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.3rem); }
  .hero-home-content { padding-top: 90px; }
  .compact-intro-title h2,
  .flow-copy h2,
  .home-cta h2,
  .contact-hero h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
  .flow-visual { min-height: 430px; }
  .flow-main-image { inset: 0 7% 10% 0; }
  .flow-secondary-image { width: 52%; }
  .contact-hero { min-height: 52svh; }
  .contact-options figure { height: 260px; }
}

@media (max-width: 480px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .flow-visual { min-height: 350px; }
  .flow-secondary-image { width: 58%; border-width: 5px; }
  .project-form,
  .contact-options-copy { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Refinamento editorial v2 */
.hero-home-editorial {
  min-height: 100svh;
  align-items: stretch;
}
.hero-home-editorial .hero-home-content {
  min-height: 100svh;
  position: relative;
  padding-top: var(--header-height);
}
.hero-copy-editorial {
  position: absolute;
  top: 44%;
  left: 0;
  width: min(760px, 70vw);
  transform: translateY(-50%);
}
.hero-copy-editorial .hero-statement {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0 76px;
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  font-weight: 500;
}
.hero-copy-editorial .hero-statement::before {
  content: "";
  width: 50px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--warm);
}
.hero-footnote {
  position: absolute;
  left: 0;
  bottom: 36px;
  max-width: 440px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  line-height: 1.7;
}

.connected-section {
  padding: clamp(86px, 9vw, 130px) 0;
  background: var(--gray-light);
}
.connected-grid {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.25fr);
  gap: clamp(54px, 8vw, 126px);
  align-items: center;
}
.connected-image {
  min-height: 590px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0,45,104,.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.connected-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.connected-content h2 {
  margin: 0;
  color: var(--blue-dark);
  font-family: Montserrat, sans-serif;
  font-size: clamp(3rem, 5vw, 5.15rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .98;
}
.connected-content h2 span,
.connected-content h2 em { display: block; }
.connected-content h2 em {
  color: var(--blue-support);
  font-style: normal;
}
.connected-copy {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 46px;
}
.connected-copy p {
  margin: 0;
  color: #566472;
  line-height: 1.75;
}
.connected-copy .lead {
  color: var(--blue-dark);
  font-family: Montserrat, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-hero-compact {
  min-height: 38svh;
}
.contact-hero-compact .contact-hero-content {
  padding-block: 64px 58px;
}
.contact-hero-compact h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 4.2vw, 4.45rem);
  line-height: 1;
}
.contact-hero-compact .contact-hero-content > p:last-child {
  max-width: 620px;
  margin-top: 20px;
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .connected-grid { grid-template-columns: 1fr; }
  .connected-image { min-height: 460px; }
  .connected-content { max-width: 880px; }
}

@media (max-width: 760px) {
  .hero-copy-editorial {
    top: 46%;
    width: 100%;
  }
  .hero-copy-editorial .hero-statement {
    margin-left: 0;
    font-size: 1.05rem;
  }
  .hero-footnote {
    bottom: 26px;
    max-width: 330px;
    font-size: .82rem;
  }
  .connected-image { min-height: 360px; }
  .connected-content h2 { font-size: clamp(2.4rem, 11vw, 3.45rem); }
  .connected-copy { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .contact-hero-compact { min-height: 34svh; }
  .contact-hero-compact .contact-hero-content { padding-block: 52px 44px; }
}

/* Final compact refinements */
.connected-image {
  height: clamp(500px, 38vw, 590px);
  min-height: 0;
  background: transparent;
}
.connected-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero-compact {
  min-height: 28svh;
}
.contact-hero-compact .contact-hero-content {
  padding-block: 46px 42px;
}
.contact-hero-compact h1 {
  max-width: 720px;
  margin-bottom: 0;
}

.contact-panel-section {
  padding: clamp(52px, 6vw, 82px) 0;
}
.project-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: clamp(24px, 3vw, 36px);
}
.project-form .form-heading,
.project-form .field-project,
.project-form .button {
  grid-column: 1 / -1;
}
.form-heading {
  margin-bottom: 2px;
}
.form-heading > p:last-child {
  margin-top: 12px;
}
.project-form input {
  min-height: 48px;
}
.project-form textarea {
  min-height: 108px;
}

.site-footer {
  padding: 28px 0;
}
.footer-content {
  display: block;
  text-align: center;
}
.footer-content p {
  color: #75818d;
  font-size: .78rem;
}

@media (max-width: 1000px) {
  .connected-image {
    height: min(68vw, 560px);
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .connected-image {
    height: 420px;
    min-height: 0;
  }
  .contact-hero-compact {
    min-height: 25svh;
  }
  .contact-hero-compact .contact-hero-content {
    padding-block: 38px 34px;
  }
  .project-form {
    grid-template-columns: 1fr;
  }
  .project-form .form-heading,
  .project-form .field-project,
  .project-form .button {
    grid-column: auto;
  }
}
