:root {
  --skills-nav: #082538;
  --skills-hero: #245371;
}

/* Reading paragraphs: aligned edges on desktop, natural spacing on mobile. */
@media (min-width: 901px) {
  main p:not([class*="eyebrow"], [class*="kicker"], .uppercase, .font-display, [class*="validity"]):not(:where(aside, form, [class*="-card"], [class*="-stats"], [class*="-stat"]) p) {
    text-align: justify;
    text-align-last: left;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
}

.site-nav {
  position: sticky !important;
  top: 0;
  z-index: 100 !important;
  background: var(--skills-nav) !important;
  border-bottom: 1px solid rgba(224, 189, 55, 0.42) !important;
  box-shadow: 0 12px 30px rgba(4, 24, 37, 0.2);
}

.site-nav nav {
  min-height: 4.75rem !important;
  padding-block: 0.72rem !important;
}

.page-hero-unified {
  display: flex;
  align-items: center;
  min-height: clamp(37rem, 64vh, 43rem) !important;
  background-color: var(--skills-hero) !important;
  background-image:
    linear-gradient(115deg, rgba(8, 37, 56, 0.12), transparent 58%),
    linear-gradient(rgba(16, 151, 167, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 151, 167, 0.075) 1px, transparent 1px) !important;
  background-size: auto, 46px 46px, 46px 46px !important;
  border-top: 5px solid rgba(255, 255, 255, 0.055);
}

.page-hero-unified > :not(.wrap),
.page-hero-unified .hero-grid:not(.wrap) {
  width: 100%;
}

/* Same section divider at the opening and footer, anchored to the page edge. */
.page-hero-unified,
.site-footer {
  position: relative;
}

.page-hero-unified[class]::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  width: min(34rem, 48vw);
  height: .5rem;
  background: var(--color-accent);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-hero-unified[class]::after {
  top: auto;
  bottom: 0;
}

.site-footer::before {
  top: 0;
  bottom: auto;
}

.site-footer .footer-main::before {
  content: none;
}

.page-hero-unified .hero-grid:not(.wrap) {
  min-height: auto !important;
}

.home-hero.page-hero-unified .hero-visual img {
  height: clamp(31rem, 53vh, 37rem) !important;
}

@media (min-width: 901px) {
  .page-hero-unified.hero > .wrap.hero-grid {
    width: min(calc(100% - 2rem), 80rem) !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  }

  .page-hero-unified.hero .hero-copy {
    min-width: 0;
  }

  .page-hero-unified.hero .hero-image {
    align-self: center;
    min-height: 0 !important;
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 1023px) {
  .page-hero-unified {
    min-height: auto !important;
  }
}

@media (max-width: 767px) {
  .site-nav nav {
    min-height: 4.25rem !important;
  }

  .page-hero-unified {
    border-top-width: 3px;
  }
}

.skills-credentials { background: #edf3f5; border-block: 1px solid #cddce3; padding: clamp(2.5rem,5vw,4.5rem) 1.5rem; color: #123247; }
.skills-credentials-inner { width: 100%; max-width: 1152px; margin-inline: auto; }
.skills-credentials-heading { max-width: 740px; margin-bottom: 2rem; }
.skills-credentials-eyebrow { color: #008da4; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.skills-credentials-heading h2 { color: #123247; font-size: clamp(1.8rem,3.2vw,2.7rem); line-height: 1.15; margin: .65rem 0 1rem; }
.skills-credentials-heading > p:last-child { line-height: 1.6; }
.skills-credentials-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.skills-credential-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.25rem,2.5vw,2rem); background: #fff; border: 1px solid #cddce3; border-top: 3px solid #ddc12c; border-radius: 8px; }
.skills-credential-brand { color: #123247; font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; }
.skills-credential-card h3 { font-size: 1.45rem; line-height: 1.25; margin: 0; }
.skills-credential-card p { margin: 0; line-height: 1.6; }
.skills-credential-validity { font-size: .9rem; font-weight: 600; }
.skills-credential-card a { color: #006e85; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.skills-credential-card a:focus-visible { outline: 3px solid #006e85; outline-offset: 4px; }
.skills-credential-card small { font-size: .8rem; line-height: 1.5; color: #536e7e; }
.skills-certificate-preview { display: flex; width: 100%; height: 230px; padding: .75rem; box-sizing: border-box; align-items: center; justify-content: center; background: #f7f9fa; border: 1px solid #d9e4e9; border-radius: 4px; }
.skills-certificate-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.skills-warranty { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 2rem; margin-top: 1.5rem; padding: clamp(1.25rem,3vw,2rem); background: #103448; border-radius: 8px; color: #fff; }
.skills-warranty-number { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; color: #efd340; }
.skills-warranty-number strong { font-size: 4.4rem; font-weight: 700; }
.skills-warranty-number span { font-size: 1rem; }
.skills-warranty h3 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 .8rem; color: #fff; }
.skills-warranty p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.6; color: #e2edf2; }
.skills-warranty a { color: #efd340; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) { .skills-warranty { grid-template-columns: minmax(0,1fr); gap: 1rem; } .skills-warranty-number { flex-direction: row; gap: .6rem; } }
@media (max-width: 767px) { .skills-credentials-grid { grid-template-columns: minmax(0,1fr); } }

/* Contato: mantém todos os campos, mas reduz a altura visual do formulário. */
.contact-hero > .max-w-6xl {
  padding-top: clamp(1.75rem, 3vw, 2.75rem) !important;
  padding-bottom: clamp(2.25rem, 4vw, 3.75rem) !important;
  column-gap: clamp(2rem, 4vw, 4rem) !important;
  row-gap: 2rem !important;
}

:is(.contact-hero, .quote) astro-island {
  display: block;
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

:is(.contact-hero, .quote) .form-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  padding: 1.25rem;
}

:is(.contact-hero, .quote) .form-container > .form-field:nth-child(n + 5),
:is(.contact-hero, .quote) .form-container > .form-button,
:is(.contact-hero, .quote) .form-container > .form-error {
  grid-column: 1 / -1;
}

:is(.contact-hero, .quote) .form-field {
  gap: 0.3rem;
}

:is(.contact-hero, .quote) .form-location-grid {
  gap: 0.75rem;
}

:is(.contact-hero, .quote) .form-location-field {
  gap: 0.25rem;
}

:is(.contact-hero, .quote) .form-label,
:is(.contact-hero, .quote) .form-location-field > span {
  font-size: 0.7rem;
  line-height: 1.25;
}

:is(.contact-hero, .quote) .form-input,
:is(.contact-hero, .quote) .form-select,
:is(.contact-hero, .quote) .form-textarea {
  box-sizing: border-box;
  min-height: 2.875rem;
  padding: 0.65rem 0.8rem;
  line-height: 1.35;
}

:is(.contact-hero, .quote) .form-textarea {
  min-height: 6.25rem;
}

:is(.contact-hero, .quote) .form-consent {
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

:is(.contact-hero, .quote) .form-consent input {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
}

:is(.contact-hero, .quote) .form-button {
  min-height: 2.875rem;
  padding: 0.65rem 1rem;
}

@media (min-width: 1101px) {
  .contact-hero > .max-w-6xl {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 34rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .contact-hero > .max-w-6xl {
    grid-template-columns: 1fr !important;
  }

  :is(.contact-hero, .quote) astro-island {
    max-width: 42rem;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .contact-hero > .max-w-6xl {
    row-gap: 1.5rem !important;
  }

  :is(.contact-hero, .quote) astro-island {
    max-width: none;
    justify-self: stretch;
  }

  :is(.contact-hero, .quote) .form-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  :is(.contact-hero, .quote) .form-container > .form-field,
  :is(.contact-hero, .quote) .form-container > .form-button,
  :is(.contact-hero, .quote) .form-container > .form-error {
    grid-column: 1;
  }

  :is(.contact-hero, .quote) .form-location-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  :is(.contact-hero, .quote) .form-input,
  :is(.contact-hero, .quote) .form-select,
  :is(.contact-hero, .quote) .form-button {
    min-height: 2.75rem;
  }

  :is(.contact-hero, .quote) .form-textarea {
    min-height: 5.75rem;
  }
}

/* Formulários de orçamento: o mesmo painel compacto da página de contato. */
.quote .quote-grid { align-items: start; }
.quote .form { box-sizing: border-box; width: 100%; max-width: 34rem; justify-self: end; padding: 1.25rem; }
.quote .form > p { margin-bottom: 1rem; }
.quote .form-container { padding: 0; border: 0; box-shadow: none; background: transparent; }
:is(.contact-hero, .quote) .form-textarea { height: 6.25rem; min-height: 6.25rem; resize: vertical; }
@media (min-width: 1101px) { .quote .quote-grid { grid-template-columns: minmax(0,1fr) minmax(30rem,34rem); gap: clamp(2rem,4vw,4rem); } }
@media (min-width: 681px) and (max-width: 1100px) { .quote .quote-grid { grid-template-columns: minmax(0,1fr); } .quote .form { max-width: 42rem; justify-self: start; } }
@media (max-width: 680px) { .quote .quote-grid { grid-template-columns: minmax(0,1fr); gap: 1.5rem; } .quote .form { padding: 1rem; max-width: none; } .quote .form-container { padding: 0; } :is(.contact-hero, .quote) .form-input, :is(.contact-hero, .quote) .form-select, :is(.contact-hero, .quote) .form-textarea { font-size: 16px; } }

/* Cabeamento: somente a foto institucional aprovada, sem recorte. */
.field-installation {
  box-sizing: border-box;
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.field-installation-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.field-installation-head h2 {
  max-width: 20ch;
  margin-top: 0.55rem;
  color: #12364d;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.field-installation-head > p {
  max-width: 39rem;
  color: var(--color-mute);
  font-size: 1.05rem;
  line-height: 1.65;
}

.field-installation-eyebrow {
  color: var(--color-accent);
  font: 700 0.76rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-installation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.field-installation-card {
  overflow: hidden;
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-rule);
  border-radius: 0.75rem;
  box-shadow: 0 14px 34px rgba(8, 37, 56, 0.1);
}

.field-installation-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fotos de cabeamento proporcionais ao conteúdo, sem ampliar a seção inteira. */
.field-installation-card {
  width: min(100%, 22rem);
  justify-self: center;
}

.field-installation-head h2 {
  font-size: clamp(2rem, 3vw, 2.625rem);
}

/* Uma estrutura comum para as fotos de instalação e de testes. */
.field-installation-card img {
  height: clamp(22rem, 36vw, 30rem);
  object-fit: contain;
  background: #f6f8f9;
}
.field-installation-checks {
  display: grid;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-ink-soft);
}
.field-installation-checks li::first-letter { color: var(--color-accent); }
.field-installation-link {
  color: var(--color-accent);
  font-weight: 700;
  font-size: .9rem;
}
.field-installation + .field-installation { padding-top: 0; }
/* Evita somar margens grandes entre os serviços e a foto de infraestrutura. */
.cabling-services { padding-bottom: 2rem !important; }
.field-installation--routes {
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}
.field-installation--routes .field-installation-head { margin-bottom: 0; }
@media (max-width: 767px) {
  .field-installation-card { width: min(100%, 20rem); }
  .field-installation-card img { height: 26rem; }
}

.field-installation-card figcaption {
  padding: 0.9rem 1rem 1rem;
  color: #173f59;
  font: 700 0.92rem/1.35 var(--font-display);
}

.field-installation-card figcaption small {
  display: block;
  margin-top: .45rem;
  font-weight: 400;
  color: var(--color-mute);
}

@media (max-width: 767px) {
  .field-installation,
  .field-installation-head,
  .field-installation-grid {
    grid-template-columns: 1fr;
  }

  .field-installation-head {
    gap: 1rem;
  }

  .field-installation-head h2 {
    max-width: none;
  }
}
/* About: team photographs replace the decorative placeholder. */
.skills-history {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  color: #15384b;
}
.skills-history > header { max-width: 46rem; margin-bottom: 2.5rem; }
.skills-history-eyebrow { color: #007e91; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.skills-history h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; margin: .65rem 0 1rem; }
.skills-history p { line-height: 1.8; }
.skills-history-copy { max-width: 54rem; color: #34576b; }
.skills-history-copy p + p { margin-top: 1.1rem; }
.about-hero > div {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.skills-about-story {
  width: 100%;
  max-width: 34rem;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: .75rem;
  background: #102f42;
}
.skills-about-story img {
  display: block;
  width: 100%;
  height: auto;
}
.skills-about-story figcaption {
  padding: 1rem 1.125rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
}
.skills-about-story figcaption span {
  display: block;
  margin-top: .25rem;
  color: #c6d9e2;
  font-size: .8rem;
  font-weight: 400;
}
@media (max-width: 900px) {
  .about-hero > div { grid-template-columns: minmax(0, 1fr); }
  .skills-about-story { justify-self: center; }
}

/* Static content first. Shared openings are defined in hero-standard.css. */
.site-section { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.site-kicker { margin: 0 0 16px; color: #007c91; font: 700 12px/1.4 var(--font-display,Arial,sans-serif); letter-spacing: .14em; text-transform: uppercase; text-align: left !important; }
.case-feature { color: #14374c; }
.case-feature-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.case-feature h2, .case-article h2, .quote-guide h2 { font: 400 34px/1.2 var(--font-display,Arial,sans-serif); letter-spacing: -.025em; margin: 0 0 20px; color: #14374c; }
.case-feature p, .case-article p, .quote-guide p { font-size: 16px; line-height: 1.75; color: #496779; margin: 0 0 20px; }
.case-photo { margin: 0; border: 1px solid #d6e1e6; border-radius: 12px; overflow: hidden; background: #f2f6f7; box-shadow: 0 16px 40px rgba(8,37,56,.08); }
.case-photo img { display: block; width: 100%; height: auto; }
.case-photo figcaption { padding: 14px 18px; font-size: 13px; line-height: 1.5; color: #36576b; background: #fff; }
.case-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #d6e1e6; border-bottom: 1px solid #d6e1e6; padding: 20px 0; margin: 26px 0; gap: 16px; }
.case-stats strong { display: block; font: 600 32px/1.1 var(--font-display,Arial,sans-serif); color: #007f94; }
.case-stats span { display: block; font-size: 12px; color: #536c7b; margin-top: 8px; line-height: 1.4; }
.site-text-link { display: inline-flex; align-items: center; gap: 12px; color: #007b90; font-weight: 700; font-size: 14px; line-height: 1.5; padding: 8px 0; text-decoration: none; border-bottom: 1px solid #8bbfc9; }
.site-text-link span { display: inline-block; transition: transform .2s ease; }
.site-text-link:hover span { transform: translateX(4px); }
.site-button { display: inline-flex; gap: 20px; align-items: center; justify-content: center; color: #082538; background: #e4bf2c; padding: 16px 24px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; min-height: 48px; box-sizing: border-box; }
.site-button:focus, .site-text-link:focus { outline: 3px solid #1097a7; outline-offset: 4px; }
.case-hero { color: #fff; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.case-hero .site-kicker { color: #eed044; }
.case-hero h1 { font: 400 54px/1.12 var(--font-display,Arial,sans-serif); letter-spacing: -.035em; margin: 0 0 24px; }
.case-hero p:not(.site-kicker) { font-size: 18px; line-height: 1.7; margin: 0 0 26px; color: #e2edf2; }
.case-article { scroll-margin-top: 110px; }
.case-heading { display: flex; gap: 28px; justify-content: space-between; align-items: flex-start; }
.case-heading > div { max-width: 760px; }
.case-status { flex-shrink: 0; color: #006c60; border: 1px solid #a7d3cb; background: #edf7f4; border-radius: 30px; padding: 9px 14px; font-size: 12px; }
.case-intro { max-width: 880px; }
.case-article > .case-stats { margin: 32px 0 48px; padding: 30px 0; }
.case-article > .case-stats strong { font-size: 44px; }
.case-story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.case-story-grid section { border-top: 3px solid #1097a7; padding-top: 22px; }
.case-story-grid section:nth-child(2) { border-color: #e4bf2c; }
.case-step { color: #007c91; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.case-story-grid h3 { font-size: 23px; line-height: 1.3; color: #14374c; margin: 14px 0; }
.case-comparison { padding: 54px 0; }
.case-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.case-comparison-grid strong { color: #14374c; }
.case-delivery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 54px; padding: 40px 0; border-top: 1px solid #d6e1e6; }
.case-deliverables { list-style: none; margin: 0; padding: 0; counter-reset: deliverable; }
.case-deliverables li { padding: 18px 18px 18px 54px; position: relative; border-bottom: 1px solid #d6e1e6; counter-increment: deliverable; }
.case-deliverables li::before { content: '0' counter(deliverable); position: absolute; left: 0; top: 20px; font-size: 13px; color: #007f94; }
.case-deliverables strong, .case-deliverables span { display: block; }
.case-deliverables strong { color: #14374c; margin-bottom: 5px; }
.case-deliverables span { color: #536c7b; line-height: 1.6; font-size: 14px; }
.case-callout { display: flex; align-items: center; gap: 36px; justify-content: space-between; padding: 36px; border-radius: 12px; background: #103448; color: #fff; margin-top: 28px; }
.case-callout h2 { color: #fff; font-size: 28px; }
.case-callout p { color: #d7e7ed; margin-bottom: 0; }
.case-callout .site-kicker { color: #eed044; margin-bottom: 12px; }
.case-callout .site-button { flex-shrink: 0; }
.quote-guide { color: #14374c; border-top: 1px solid #d6e1e6; }
.quote-guide > div:first-child { max-width: 730px; margin-bottom: 32px; }
.quote-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.quote-guide-grid article { border-top: 2px solid #1097a7; padding-top: 20px; }
.quote-guide-grid article > span { font-size: 13px; color: #007f94; }
.quote-guide-grid h3 { margin: 14px 0 12px; font-size: 20px; line-height: 1.3; }
.quote-guide-grid p { font-size: 14px; text-align: left !important; }
.about-case-link { padding-top: 0; padding-bottom: 40px; }
.about-case-link p { color: #496779; margin-bottom: 10px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: #e4bf2c; text-underline-offset: 7px; }
main [id], main section[id] { scroll-margin-top: 110px; }
.form-success { scroll-margin-top: 120px; }
.form-location-grid { min-width: 0; }
.form-location-field { min-width: 0; }
.form-field-prefilled { display: none !important; }
/* Conservative fallbacks for browsers without newer CSS color functions. */
.form-input:focus,.form-select:focus,.form-textarea:focus { box-shadow: 0 0 0 3px rgba(16,151,167,.18); }
.site-nav nav a, .site-button, .case-photo { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
@media (hover:hover) and (pointer:fine) {
  .site-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(8,37,56,.16); }
  .case-feature .case-photo:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(8,37,56,.13); }
  .skills-credential-card { transition: border-color .2s ease, box-shadow .2s ease; }
  .skills-credential-card:hover { border-color: #1097a7; box-shadow: 0 12px 28px rgba(8,37,56,.07); }
}
@keyframes skills-enter { from { transform: translateY(14px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .skills-enter { animation: skills-enter .5s ease-out; }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width:1000px) {
  .case-feature-grid,.case-hero-grid { gap: 28px; }
  .case-hero h1 { font-size: 42px; }
  .case-heading { display: block; }
  .case-status { display: inline-block; margin: 0 0 24px; }
  .quote-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .site-section { padding: 42px 20px; }
  .case-feature-grid,.case-hero-grid,.case-story-grid,.case-delivery { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .case-feature-copy { grid-row: 1; }
  .case-hero h1 { font-size: 38px; }
  .case-feature h2,.case-article h2,.quote-guide h2 { font-size: 29px; }
  .case-comparison-grid { grid-template-columns: minmax(0,1fr); }
  .case-callout { flex-direction: column; align-items: flex-start; padding: 25px; }
  .case-stats { gap: 10px; }
  .case-stats strong { font-size: 28px; }
  .case-article > .case-stats strong { font-size: 32px; }
  .case-feature p,.case-article p,.quote-guide p { text-align: left; }
  .page-hero-unified.hero h1 { font-size: 40px; line-height: 1.13; }
  .quote-guide-grid { gap: 20px; }
}
@media (max-width:400px) {
  .quote-guide-grid { grid-template-columns: minmax(0,1fr); }
  .case-hero h1,.page-hero-unified.hero h1 { font-size: 34px; }
}

/* A gallery first; each project has its own page. */
.portfolio-header.page-hero-unified { color: #fff; }
.portfolio-header > .site-section { padding-top: 56px; padding-bottom: 56px; }
.portfolio-header .site-kicker { color: #eed044; }
.portfolio-header h1 { max-width: 920px; font: 400 50px/1.13 var(--font-display,Arial,sans-serif); letter-spacing: -.03em; margin: 0 0 20px; }
.portfolio-header p:not(.site-kicker) { max-width: 820px; font-size: 18px; line-height: 1.7; color: #e2edf2; margin: 0; }
.portfolio-gallery { padding-top: 38px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.project-filters button { border: 1px solid #cbdbe2; background: #fff; color: #23485d; font: 600 14px/1.4 var(--font-display,Arial,sans-serif); border-radius: 30px; padding: 11px 18px; cursor: pointer; }
.project-filters button[aria-pressed="true"] { background: #103448; border-color: #103448; color: #fff; }
.project-filters button:focus { outline: 3px solid #1097a7; outline-offset: 3px; }
.project-filter-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.project-card { border: 1px solid #cfdee5; background: #fff; border-radius: 10px; overflow: hidden; min-width: 0; box-shadow: 0 8px 24px rgba(8,37,56,.045); }
.project-card-link { display: flex; flex-direction: column; color: #14374c; text-decoration: none; height: 100%; }
.project-card-link:focus { outline: 3px solid #1097a7; outline-offset: -4px; }
.project-card-media { height: 240px; background: #eef3f5; overflow: hidden; }
.project-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.project-card-portrait img { object-position: center 35%; }
.project-card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
.project-card .site-kicker { font-size: 11px; margin-bottom: 12px; }
.project-card h2 { font-size: 24px; font-weight: 500; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
.project-card p:not(.site-kicker) { color: #536d7c; font-size: 15px; line-height: 1.65; margin: 0 0 20px; text-align: left !important; }
.project-card .project-location { color: #34596e !important; font-size: 13px !important; margin-bottom: 14px !important; }
.project-card-cta { display: flex; gap: 16px; align-items: center; color: #007b90; font-weight: 700; font-size: 14px; padding-top: 8px; margin-top: auto; }
.project-card[hidden],.project-filters[hidden] { display: none !important; }
.portfolio-gallery > .case-callout { margin-top: 56px; }
.portfolio-back { display: inline-block; color: #fff; text-decoration: none; border-bottom: 1px solid #84adbd; font-size: 14px; margin-bottom: 26px; padding-bottom: 6px; }
.portfolio-back:focus { outline: 3px solid #eed044; outline-offset: 5px; }
.portfolio-detail-header h1 { font-size: 44px; }
.portfolio-intro { max-width: 870px; color: #496779; font-size: 18px; line-height: 1.75; margin: 0 0 22px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0 0 34px; }
.project-tags li { border: 1px solid #cbdde5; border-radius: 30px; padding: 7px 14px; font-size: 13px; color: #34596e; }
.portfolio-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 50px; align-items: start; }
.portfolio-story section { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid #d5e1e7; }
.portfolio-story p { margin: 12px 0 0; color: #496779; font-size: 16px; line-height: 1.75; }
.portfolio-secondary { max-width: 450px; margin-top: 36px; }
.portfolio-related { padding-top: 10px; }
.portfolio-related > h2 { font-size: 32px; color: #14374c; margin-bottom: 30px; }
.portfolio-related .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (hover:hover) and (pointer:fine) {
  .project-card { transition: transform .2s ease, box-shadow .2s ease; }
  .project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8,37,56,.1); }
}
@media (min-width:768px) and (max-width:1100px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .portfolio-header > .site-section { padding-top: 36px; padding-bottom: 40px; }
  .portfolio-header h1,.portfolio-detail-header h1 { font-size: 34px; }
  .portfolio-header p:not(.site-kicker) { font-size: 16px; text-align: left; }
  .project-grid,.portfolio-related .project-grid,.portfolio-detail-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .project-card-media { height: 250px; }
  .project-card-copy { padding: 24px; }
  .project-card h2 { font-size: 25px; }
  .project-filters { gap: 8px; }
  .project-filters button { padding: 9px 13px; font-size: 13px; }
}

/* One opening scale across all pages. Content stays visible without scripts. */
.page-hero-unified[class] {
  box-sizing: border-box !important;
  height: clamp(34rem,59vh,40rem) !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: #fff;
}
.page-hero-unified[class] > div,
.page-hero-unified.hero > .wrap.hero-grid {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 28px 32px !important;
  min-height: 0 !important;
  align-items: center !important;
  gap: 48px !important;
}
.page-hero-unified[class] > div.grid,
.page-hero-unified[class] > .hero-grid,
.page-hero-unified[class] > .case-hero-grid {
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr) !important;
}
.page-hero-unified[class] .hero-copy { padding: 0 !important; gap: 20px !important; }
.page-hero-unified[class] h1 {
  font-size: clamp(40px,4.1vw,54px) !important;
  color: #fff !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: -.035em !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  text-align: left !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}
.page-hero-unified[class] p:not(.site-kicker):not(.eyebrow) {
  font-size: 18px !important;
  line-height: 1.65 !important;
}
.page-hero-unified[class] .hero-actions > a { min-height: 48px; padding: 14px 22px; }
.page-hero-unified[class]::after,
.site-footer::before {
  left: 0 !important; right: auto !important;
  width: min(34rem,48vw) !important; height: .5rem !important;
  transform: none !important; border: 0 !important;
  box-shadow: none !important; border-radius: 0 !important;
}
.contact-intro .eyebrow { color: #eed044; display: block; margin-bottom: 20px; }
.contact-intro h1 { max-width: 920px !important; margin-bottom: 24px; }
.contact-intro p { max-width: 820px; color: #e2edf2; }
.contact-details-title { font-size: 32px; line-height: 1.2; margin-bottom: 28px; }
.project-records { margin-top: 40px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.project-records img { width: 100%; height: auto; }
@media (min-width:1024px) and (max-height:760px) {
  .page-hero-unified[class] { height: calc(100vh - 136px) !important; min-height: 480px !important; }
  .page-hero-unified[class] > div { padding-block: 24px !important; }
  .page-hero-unified[class] h1 { font-size: 44px !important; }
  .page-hero-unified[class] p:not(.site-kicker):not(.eyebrow) { font-size: 17px !important; line-height: 1.5 !important; }
}
@media (max-width:1023px) {
  .page-hero-unified[class] { height: auto !important; min-height: 0 !important; }
  .page-hero-unified[class] > div,
  .page-hero-unified.hero > .wrap.hero-grid { padding: 32px 24px !important; grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
  .page-hero-unified[class] h1 { font-size: 40px !important; }
  .page-hero-unified[class] p { text-align: left !important; }
  .page-hero-unified[class] figure { max-width: 560px; justify-self: center; }
}
@media (max-width:600px) {
  .page-hero-unified[class] h1 { font-size: 34px !important; }
  .page-hero-unified[class] p:not(.site-kicker):not(.eyebrow) { font-size: 16px !important; }
  .project-records { grid-template-columns: minmax(0,1fr); }
}

.opening-copy { display:flex; flex-direction:column; gap:20px; min-width:0; }
.page-hero-unified .opening-copy > * { margin:0 !important; }
.page-hero-unified .opening-copy p:not(.site-kicker) { color:#e2edf2; }
.page-hero-unified .opening-photo { margin:0; width:100%; border:1px solid #8aa9b5; border-radius:12px; overflow:hidden; }
.page-hero-unified .opening-photo img { display:block; width:100%; height:340px; object-fit:cover; object-position:center; }
.page-hero-unified .opening-photo.portrait img { object-fit:contain; background:#103448; }
@media (max-width:600px) { .page-hero-unified .opening-photo img { height:280px; } }

/* Approved Cabeamento frame: full photograph and diagonal corners. */
.page-hero-unified[class][class] figure {
  position:relative !important;
  width:100% !important; max-width:480px !important;
  height:360px !important; min-height:0 !important;
  padding:0 !important; margin:0 !important;
  justify-self:center !important; align-self:center !important;
  border:0 !important; border-radius:0 !important;
  box-shadow:none !important; overflow:hidden !important;
  clip-path:polygon(7% 0,100% 0,100% 92%,93% 100%,0 100%,0 8%) !important;
}
.page-hero-unified[class][class] figure img {
  display:block !important; position:absolute !important; inset:0 !important;
  width:100% !important; height:100% !important;
  max-height:none !important; object-fit:cover !important;
  object-position:center 15% !important;
  border-radius:0 !important;
}
.page-hero-unified[class][class] figure::before { content:none !important; }
.page-hero-unified[class][class] figure figcaption {
  position:absolute !important; z-index:2 !important;
  top:auto !important; bottom:24px !important; left:0 !important; right:auto !important;
  box-sizing:border-box !important; max-width:90% !important; min-height:0 !important;
  width:auto !important; margin:0 !important; padding:14px 18px !important;
  border:0 !important; border-radius:0 !important;
  background:#1097a7 !important; color:#fff !important;
  font-size:13px !important; line-height:1.4 !important;
  text-transform:none !important; letter-spacing:normal !important;
}
.page-hero-unified[class][class] figure figcaption * { color:inherit !important; }
@media (max-width:600px) {
  .page-hero-unified[class][class] figure { height:300px !important; }
}
