/* Shared site styles. Brand tokens and base layout are followed by the
   approved component refinements; homepage-only composition lives separately. */
@font-face {
  font-family: "Greycliff CF";
  src: url("Recursos/Fuentes/GreycliffCF-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Greycliff CF";
  src: url("Recursos/Fuentes/GreycliffCF-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --blue: #3750d7;
  --blue-dark: #102bbd;
  --blue-ink: #0d238f;
  --sky: #8aacff;
  --cream: #fffcda;
  --gold: #f9e282;
  --lime: #e0ee5e;
  --paper: #fffef3;
  --white: #ffffff;
  --ink: #111e68;
  --muted: #5c6590;
  --line: rgba(17, 30, 104, 0.16);
  --line-light: rgba(255, 252, 218, 0.22);
  --shadow: 0 24px 70px rgba(13, 35, 143, 0.11);
  --radius: 28px;
  --page: min(1240px, calc(100% - 96px));
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Greycliff CF", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
body.menu-open {
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
::selection {
  background: var(--lime);
  color: var(--blue-ink);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--blue-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
}
.site-header.is-scrolled,
.site-header.on-light {
  background: rgba(255, 254, 243, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: var(--page);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: height 220ms ease;
}
.site-header.is-scrolled .nav-shell {
  height: 72px;
}
.brand {
  position: relative;
  z-index: 102;
  flex: 0 0 auto;
}
.brand img {
  width: 60px;
  height: 64px;
  object-fit: contain;
}
.brand-dark,
.site-header.on-light .brand-light,
.site-header.is-scrolled .brand-light {
  display: none;
}
.site-header.on-light .brand-dark,
.site-header.is-scrolled .brand-dark {
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  position: relative;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.site-header.on-light .nav-links a,
.site-header.is-scrolled .nav-links a {
  color: var(--muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
}
.site-header.on-light .nav-links a:hover,
.site-header.on-light .nav-links a[aria-current="page"],
.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a[aria-current="page"] {
  color: var(--blue-ink);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--blue-ink);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}
.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  background: var(--gold);
}
.site-header.on-light .nav-cta,
.site-header.is-scrolled .nav-cta {
  background: var(--blue);
  color: var(--cream);
}
.site-header.on-light .nav-cta:hover,
.site-header.is-scrolled .nav-cta:hover {
  background: var(--lime);
  color: var(--blue-ink);
}
.button-dark {
  background: var(--blue-ink);
  color: var(--cream);
}
.button-dark:hover {
  background: var(--blue-dark);
  color: var(--cream);
}
.button-outline {
  border: 1px solid rgba(255, 252, 218, 0.44);
  background: transparent;
  color: var(--cream);
}
.button-outline:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--blue-ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover {
  color: var(--blue);
}
.menu-toggle {
  position: relative;
  z-index: 102;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 252, 218, 0.38);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.site-header.on-light .menu-toggle,
.site-header.is-scrolled .menu-toggle {
  border-color: var(--line);
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition:
    transform 180ms ease,
    top 180ms ease,
    opacity 180ms ease;
}
.site-header.on-light .menu-toggle span,
.site-header.is-scrolled .menu-toggle span {
  background: var(--blue-ink);
}
.menu-toggle span:nth-child(1) {
  top: 16px;
}
.menu-toggle span:nth-child(2) {
  top: 22px;
}
.menu-toggle span:nth-child(3) {
  top: 28px;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}
.display {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.84;
}
.display em,
.section-title em {
  color: var(--lime);
  font-style: normal;
}
.section-title {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.section-title-sm {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}
.lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
.site-main {
  min-height: 65vh;
}
.home-hero {
  position: relative;
  min-height: min(860px, 100svh);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--blue-dark);
  color: var(--cream);
}
.home-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("Recursos/Logos/bacan-haus-symbol-sky.svg") right -85px center / auto 125%
    no-repeat;
  opacity: 0.17;
  pointer-events: none;
}
.page-hero::before {
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: 160px 0 76px;
}
.hero-copy {
  max-width: 990px;
}
.hero-foot {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(260px, 520px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}
.hero-foot .lead {
  color: rgba(255, 252, 218, 0.78);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section {
  padding: 120px 0;
}
.section-compact {
  padding: 88px 0;
}
.shell {
  width: var(--page);
  margin: 0 auto;
}
.section-head {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 48px;
}
.section-head .lead {
  color: var(--muted);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}
.service-card:hover {
  z-index: 1;
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
.service-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.24;
  transition: transform 260ms ease;
}
.service-card:hover::after {
  transform: scale(1.22);
}
.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 54px 0 12px;
  max-width: 270px;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 340px;
  color: var(--muted);
}
.service-card .arrow {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--blue);
  font-size: 1.5rem;
  transition: transform 180ms ease;
}
.service-card:hover .arrow {
  transform: translate(4px, -4px);
}
.portfolio-jump {
  margin-top: 24px;
}
.portfolio-feature {
  background: var(--cream);
  scroll-margin-top: 72px;
}
.portfolio-film {
  overflow: hidden;
  border-radius: var(--radius);
  background: #080b22;
  box-shadow: var(--shadow);
}
.portfolio-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  cursor: auto;
}
.film-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.photo-story {
  padding-top: 44px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.photo-story-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.photo-story-heading h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.photo-story-heading > p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-ink);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}
.photo-grid a:hover img {
  transform: scale(1.025);
}
.photo-grid-landscape {
  grid-template-columns: 1.65fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 1.8;
}
.photo-grid-landscape a:first-child {
  grid-row: 1 / 3;
}
.photo-grid-portraits a {
  aspect-ratio: 3 / 4;
}
@media (max-width: 760px) {
  .photo-story-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .photo-grid-landscape {
    grid-template-rows: none;
    aspect-ratio: auto;
  }
  .photo-grid-landscape a:first-child {
    grid-row: auto;
  }
  .photo-grid a {
    aspect-ratio: auto;
  }
  .photo-grid img {
    height: auto;
  }
}
.project-teaser {
  background: var(--sky);
}
.cta-band {
  background: var(--lime);
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
}
.cta-band h2 {
  max-width: 870px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6.2rem);
  letter-spacing: -0.06em;
  line-height: 0.88;
}
.page-hero {
  position: relative;
  overflow: hidden;

  min-height: clamp(520px, calc(324px + 22.14vw), 680px);
  padding: 184px 0 92px;
  background: var(--blue-dark);
  color: var(--cream);
}
.page-hero .shell {
  position: relative;
  z-index: 1;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 60px;
}
.page-title {
  margin: 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.82;
}
.page-title em {
  color: var(--lime);
  font-style: normal;
}
.page-summary {
  margin: 0;
  color: rgba(255, 252, 218, 0.72);
  font-size: 1.12rem;
}
.line-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.line-item {
  display: grid;
  grid-template-columns: 72px 0.75fr 1.1fr auto;
  align-items: start;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.line-item > span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}
.line-item h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.line-item p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}
.line-tags {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}
.line-tags li,
.pill {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.line-item .text-link {
  white-space: nowrap;
}
.solution-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.solution-path {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--cream);
}
.solution-path:nth-child(2) {
  background: var(--blue-ink);
  color: var(--cream);
}
.solution-path:nth-child(3) {
  background: var(--lime);
  color: var(--blue-ink);
}
.solution-path .pill {
  width: max-content;
  border-color: currentColor;
  color: inherit;
}
.solution-path h3 {
  margin: auto 0 12px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.solution-path p {
  margin: 0;
  opacity: 1;
}
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 16px 0;
  background: rgba(255, 254, 243, 0.95);
  backdrop-filter: blur(16px);
}
.filter-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}
.filter-list::-webkit-scrollbar {
  display: none;
}
.filter-button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--cream);
}
.package-group {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}
.package-group[hidden] {
  display: none;
}
.package-group-head {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.package-group-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}
.package-group-head p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.package-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.package-card h3 {
  margin: 26px 0 12px;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  line-height: 1;
}
.package-card ul {
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  list-style: none;
}
.package-card li {
  position: relative;
  padding-left: 17px;
}
.package-card li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}
.package-card .button {
  width: 100%;
  margin-top: auto;
}
.package-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.catalog-note {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--cream);
  color: var(--muted);
}
.catalog-note strong {
  color: var(--blue-ink);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(42px, 8vw, 110px);
}
.contact-details h2 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.contact-details > p {
  margin: 0 0 34px;
  color: var(--muted);
}
.contact-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  list-style: none;
}
.contact-list span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.contact-list a,
.contact-list strong {
  font-size: 1.12rem;
}
.contact-list a:hover {
  color: var(--blue);
}
.contact-form {
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background: var(--cream);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  color: var(--blue-ink);
  font-size: 0.88rem;
  font-weight: 900;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(13, 35, 143, 0.24);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.field input,
.field select {
  height: 54px;
  padding: 0 16px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 15px 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(55, 80, 215, 0.18);
}
.form-foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form-foot p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--blue-ink);
  font-size: 0.9rem;
  font-weight: 700;
}
.site-footer {
  padding: 56px 0 34px;
  background: var(--blue-ink);
  color: var(--cream);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 70px;
  align-items: start;
}
.footer-brand img {
  width: 88px;
  height: 94px;
  object-fit: contain;
}
.footer-brand p {
  margin: 18px 0 0;
  max-width: 340px;
  color: rgba(255, 252, 218, 0.55);
}
.footer-nav,
.footer-contact {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}
.footer-nav a,
.footer-contact a {
  color: rgba(255, 252, 218, 0.72);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--lime);
}
.footer-bottom {
  margin-top: 54px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 252, 218, 0.42);
  font-size: 0.82rem;
}
@media (max-width: 1020px) {
  :root {
    --page: min(100% - 48px, 860px);
  }
  .nav-links,
  .site-header .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links.is-open {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: var(--blue-ink);
  }
  .site-header:has(.nav-links.is-open) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .site-header:has(.nav-links.is-open) .brand {
    position: fixed;
    top: 10px;
    left: max(18px, calc((100vw - 860px) / 2));
    z-index: 103;
  }
  .site-header:has(.nav-links.is-open) .menu-toggle {
    position: fixed;
    top: 12px;
    right: max(18px, calc((100vw - 860px) / 2));
    z-index: 103;
  }
  .nav-links.is-open a,
  .site-header.on-light .nav-links.is-open a,
  .site-header.is-scrolled .nav-links.is-open a {
    color: var(--cream);
    font-size: clamp(2.2rem, 7vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .nav-links.is-open a[aria-current="page"] {
    color: var(--lime);
  }
  .site-header:has(.nav-links.is-open) .brand-light,
  .site-header.on-light:has(.nav-links.is-open) .brand-light,
  .site-header.is-scrolled:has(.nav-links.is-open) .brand-light {
    display: block;
  }
  .site-header:has(.nav-links.is-open) .brand-dark,
  .site-header.on-light:has(.nav-links.is-open) .brand-dark,
  .site-header.is-scrolled:has(.nav-links.is-open) .brand-dark {
    display: none;
  }
  .site-header:has(.nav-links.is-open) .menu-toggle {
    border-color: rgba(255, 252, 218, 0.4);
  }
  .site-header:has(.nav-links.is-open) .menu-toggle span {
    background: var(--cream);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
  .service-card:last-child {
    grid-column: 1 / -1;
  }
  .line-item {
    grid-template-columns: 52px 0.8fr 1.2fr;
  }
  .line-item .text-link {
    grid-column: 2 / -1;
  }
  .package-grid,
  .solution-paths {
    grid-template-columns: repeat(2, 1fr);
  }
  .package-card:last-child:nth-child(odd),
  .solution-path:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  :root {
    --page: calc(100% - 36px);
    --radius: 22px;
  }
  .nav-shell,
  .site-header.is-scrolled .nav-shell {
    height: 72px;
  }
  .brand img {
    width: 49px;
    height: 52px;
  }
  .home-hero::before,
  .page-hero::before {
    background-position: right -160px top 60px;
    background-size: auto 78%;
    opacity: 0.13;
  }
  .display {
    font-size: clamp(3.55rem, 18vw, 6.2rem);
  }
  .home-hero {
    min-height: 760px;
  }
  .hero-inner {
    padding: 132px 0 48px;
  }
  .hero-foot,
  .section-head,
  .page-hero-grid,
  .contact-layout,
  .cta-band-inner,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-foot {
    align-items: start;
  }
  .section,
  .section-compact {
    padding: 78px 0;
  }
  .section-head {
    margin-bottom: 34px;
    gap: 22px;
  }
  .service-grid,
  .package-grid,
  .solution-paths {
    grid-template-columns: 1fr;
  }
  .service-card,
  .service-card:last-child,
  .package-card:last-child:nth-child(odd),
  .solution-path:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .service-card {
    min-height: 270px;
  }
  .page-hero {
    min-height: 700px;
    padding: 142px 0 72px;
  }
  .page-title {
    font-size: clamp(3.65rem, 18vw, 6.8rem);
  }
  .page-hero-grid {
    gap: 36px;
  }
  .line-item {
    grid-template-columns: 42px 1fr;
    gap: 20px;
  }
  .line-item > div,
  .line-item .text-link {
    grid-column: 2;
  }
  .package-group-head {
    align-items: start;
    flex-direction: column;
  }
  .package-group-head p {
    text-align: left;
  }
  .package-card {
    min-height: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
  .form-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .form-foot .button {
    width: 100%;
  }
  .footer-top {
    gap: 34px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* Approved component geometry. Keep after responsive foundations to preserve the cascade. */
:root {
  --radius: 16px;
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
}
.icon-chevron {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: currentColor;
}
.service-card .arrow {
  display: grid;
  place-items: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
html {
  scrollbar-color: var(--sky) var(--blue-ink);
}
body {
  caret-color: var(--blue);
}
a {
  text-underline-offset: 0.24em;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.display,
.page-title,
.section-title,
.cta-band h2 {
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.nav-shell {
  height: 80px;
}
.brand img {
  width: 52px;
  height: 58px;
}
.section {
  padding: clamp(64px, 7vw, 104px) 0;
}
.section-title {
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
}
.section-title-sm {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}
.section-head {
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 850px;
}
.section-head .lead {
  max-width: 60ch;
  margin: 0;
}
.home-hero {
  min-height: 680px;
  align-items: center;
}
.home-hero::before {
  opacity: 0.17;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  padding: 144px 0 80px;
  align-items: center;
}
.hero-copy {
  align-self: end;
}
.display {
  font-size: clamp(3rem, 6.4vw, 6rem);
  max-width: 14ch;
}
.hero-foot {
  grid-column: 1;
  grid-row: 2;
  display: block;
  align-self: start;
  margin-top: 28px;
}
.hero-foot .lead {
  max-width: 44ch;
  font-size: 1.125rem;
  margin: 0 0 28px;
  color: var(--cream);
}
.page-hero {
  min-height: 440px;
  padding: 128px 0 56px;
}
.page-hero-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-title {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
}
.page-title br {
  display: none;
}
.page-summary {
  max-width: 65ch;
  color: var(--cream);
}
.page-title {
  max-width: 100%;
}
.portfolio-jump {
  margin-top: 18px;
}
.service-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.service-card,
.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: auto;
  min-height: 220px;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.service-card:last-child {
  grid-column: 1 / -1;
}
.service-card::after {
  display: none;
}
.service-card h3 {
  margin: 0 36px 16px 0;
  max-width: none;
  font-size: 2rem;
  line-height: 1.08;
}
.service-card .arrow {
  top: 30px;
  right: 0;
}
.service-card:hover {
  transform: none;
  box-shadow: none;
}
.button,
.nav-cta,
.filter-button {
  transition:
    transform 160ms var(--ease-ui),
    background-color 180ms ease,
    color 180ms ease;
}
.button:hover,
.nav-cta:hover {
  transform: none;
}
.button:active,
.nav-cta:active,
.filter-button:active {
  transform: scale(0.98);
}
.button:focus-visible,
.nav-cta:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
.button:focus-visible {
  box-shadow: 0 0 0 7px var(--blue);
}
.package-card {
  border-radius: 16px;
  box-shadow: none;
}
.package-price {
  font-variant-numeric: tabular-nums;
}
.footer-bottom,
.footer-brand p {
  color: var(--cream);
}
.cta-band h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover h3 {
    color: var(--blue);
  }
}
@media (max-width: 1020px) {
  .hero-inner {
    column-gap: 32px;
  }
  .display {
    font-size: clamp(3rem, 6.4vw, 6rem);
  }
  .page-hero {
    min-height: 440px;
  }
}
@media (max-width: 760px) {
  .nav-shell {
    height: 72px;
  }
  .home-hero {
    min-height: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 116px 0 40px;
    gap: 0;
  }
  .display {
    font-size: clamp(2.8rem, 9.3vw, 4.5rem);
  }
  .hero-foot {
    margin-top: 24px;
  }
  .hero-foot .lead {
    font-size: 1rem;
  }
  .page-hero {
    min-height: 480px;
    padding: 116px 0 40px;
  }
  .page-title {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }
  .page-summary {
    font-size: 1rem;
  }
  .page-hero-grid {
    gap: 22px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: 1;
    min-height: 180px;
  }
  .button {
    padding-inline: 20px;
  }
}

/* Accessibility and progressive enhancement. */
[hidden] {
  display: none !important;
}
.project-teaser .section-head .lead {
  color: var(--blue-ink);
}
.contact-fields {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
@media (pointer: coarse) {
  .footer-nav a,
  .footer-contact a {
    min-height: 44px;
  }
}
@media (max-width: 1020px) {
  .nav-links.is-open {
    overflow-y: auto;
    padding: 90px 24px 32px;
  }
}
@media (max-width: 1020px) and (max-height: 600px) {
  .nav-links.is-open {
    justify-content: flex-start;
    gap: 16px;
  }
}
/* Preserve immediate state feedback without vestibular motion. JS controls media separately. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .skip-link,
  .site-header,
  .nav-shell,
  .nav-links a::after,
  .menu-toggle span,
  .button,
  .nav-cta,
  .filter-button,
  .service-card,
  .service-card .arrow,
  .photo-grid img {
    transition: none;
  }
  .button:active,
  .nav-cta:active,
  .photo-grid a:hover img {
    transform: none;
  }
}
