/*
Theme Name: AIMexico Portal Premium
Theme URI: https://aimexico.com
Author: jmazae
Description: Portal institucional premium con secciones editables, carrusel de imagenes, video y galeria.
Version: 1.10.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: aimexico-portal
*/

:root {
  --ai-carbon: #272e3c;
  --ai-carbon-deep: #182130;
  --ai-carbon-soft: #3b4350;
  --ai-cyan: #45e0f6;
  --ai-cyan-deep: #229fb1;
  --ai-paper: #f7f5f0;
  --ai-white: #ffffff;
  --ai-gray: #8c8880;
  --ai-gray-light: #c7c7c4;
  --ai-warm: #d8c5a7;
  --ai-line: rgba(39, 46, 60, 0.14);
  --ai-line-light: rgba(255, 255, 255, 0.16);
  --ai-shadow: 0 24px 64px rgba(24, 33, 48, 0.18);
  --ai-shell: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ai-paper);
  color: var(--ai-carbon);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body,
button,
input,
textarea,
select {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
}

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

a {
  color: inherit;
}

.ai-rich-center {
  display: block;
  width: 100%;
  text-align: center;
}

.ai-hero-subtitle a,
.ai-about-copy a,
.ai-service-card p a,
.ai-section-header > p a,
.ai-media-panel > p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ai-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100001;
  padding: 10px 16px;
  background: var(--ai-white);
  color: var(--ai-carbon);
  transform: translateY(-150%);
}

.ai-skip-link:focus {
  transform: translateY(0);
}

.ai-page {
  min-height: 100vh;
  background: var(--ai-paper);
}

.ai-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  background: var(--ai-carbon-deep);
  color: var(--ai-white);
  transition: min-height 220ms ease, border-color 220ms ease, background 220ms ease;
}

.admin-bar .ai-nav {
  top: 32px;
}

.ai-nav.is-scrolled {
  min-height: 82px;
  border-color: var(--ai-line-light);
  background: var(--ai-carbon-deep);
}

.ai-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  text-decoration: none;
}

.ai-brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.custom-logo {
  width: clamp(190px, 17vw, 250px);
  height: 78px;
  flex: 0 1 250px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.16) contrast(1.08) drop-shadow(0 4px 14px rgba(69, 224, 246, 0.18));
  transition: filter 180ms ease, transform 180ms ease;
}

.ai-brand:hover .custom-logo,
.ai-brand:focus-visible .custom-logo {
  filter: brightness(1.3) contrast(1.1) drop-shadow(0 5px 18px rgba(69, 224, 246, 0.3));
  transform: translateY(-1px);
}

.ai-brand-mark {
  display: grid;
  place-items: center;
  background: var(--ai-white);
  color: var(--ai-cyan-deep);
  font-size: 18px;
  font-weight: 700;
}

.ai-brand-text {
  min-width: 0;
  display: grid;
  line-height: 1.1;
}

.ai-brand-text strong {
  font-size: 18px;
  text-transform: uppercase;
}

.ai-brand-text small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  text-transform: uppercase;
}

.ai-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.ai-nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.ai-nav-links a:hover,
.ai-nav-links a:focus-visible {
  color: var(--ai-cyan);
}

.ai-nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.ai-nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ai-cyan);
  background: var(--ai-cyan);
  color: var(--ai-carbon-deep);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.ai-nav-cta:hover,
.ai-nav-cta:focus-visible {
  border-color: var(--ai-white);
  background: var(--ai-white);
  color: var(--ai-carbon-deep);
}

.ai-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--ai-line-light);
  background: transparent;
  color: var(--ai-white);
  cursor: pointer;
}

.ai-menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ai-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ai-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ai-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ai-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  padding-top: 96px;
  background: var(--ai-carbon);
  color: var(--ai-white);
}

.ai-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(36px, 7vw, 118px) 48px;
}

.ai-eyebrow,
.ai-section-label {
  margin: 0;
  color: var(--ai-cyan-deep);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ai-eyebrow {
  margin-bottom: 28px;
}

.ai-hero-title {
  max-width: 760px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0;
}

.ai-hero-title span,
.ai-hero-title em {
  display: block;
}

.ai-hero-title em {
  color: var(--ai-cyan);
  font-style: italic;
  font-weight: 300;
}

.ai-hero-subtitle {
  max-width: 620px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ai-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ai-button:hover,
.ai-button:focus-visible {
  transform: translateY(-2px);
}

.ai-button-primary {
  background: var(--ai-cyan);
  color: var(--ai-carbon);
}

.ai-button-primary:hover,
.ai-button-primary:focus-visible {
  background: var(--ai-cyan-deep);
  color: var(--ai-white);
}

.ai-button-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ai-white);
}

.ai-button-ghost:hover,
.ai-button-ghost:focus-visible {
  border-color: var(--ai-cyan);
  color: var(--ai-cyan);
}

.ai-hero-stats {
  width: min(780px, 100%);
  display: grid;
  gap: clamp(8px, 1vw, 16px);
  margin-top: 48px;
}

.ai-hero-stats-columns-1 {
  grid-template-columns: minmax(0, 1fr);
}

.ai-hero-stats-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-hero-stats-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-hero-stats-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-stat {
  min-height: 110px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 18px 12px;
  text-align: center;
}

.ai-stat strong {
  color: var(--ai-cyan);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 300;
}

.ai-stat span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
}

.ai-hero-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--ai-carbon-deep);
}

.ai-hero-slides,
.ai-hero-slide,
.ai-hero-slide img,
.ai-hero-shade {
  position: absolute;
  inset: 0;
}

.ai-hero-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 800ms ease, transform 1200ms ease;
}

.ai-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.ai-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-hero-shade {
  background: rgba(24, 33, 48, 0.48);
}

.ai-hero-grid {
  position: absolute;
  inset: 13% 10% 15% 12%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-hero-grid::before,
.ai-hero-grid::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
}

.ai-hero-grid::before {
  width: 1px;
  height: 120%;
  top: -10%;
  left: 28%;
}

.ai-hero-grid::after {
  width: 120%;
  height: 1px;
  top: 61%;
  left: -10%;
}

.ai-hero-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  color: transparent;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 220px;
  font-weight: 300;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(69, 224, 246, 0.6);
  transform: translate(-50%, -50%);
}

.ai-slider-dots {
  position: absolute;
  left: 10%;
  bottom: 11%;
  z-index: 2;
  display: flex;
  gap: 9px;
}

.ai-slider-dots button {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.ai-slider-dots button.is-active {
  width: 48px;
  background: var(--ai-cyan);
}

.ai-section {
  position: relative;
  padding: 112px clamp(24px, 5vw, 72px);
}

.ai-section-shell {
  width: min(var(--ai-shell), 100%);
  margin: 0 auto;
}

.ai-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 54px;
}

.ai-section-header-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.ai-section-header-centered .ai-section-heading,
.ai-section-header-centered > p {
  max-width: 780px;
  text-align: center;
}

.ai-section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.ai-section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.ai-section-header h2,
.ai-media-panel h3,
.ai-page-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.ai-section-header h2 em {
  color: var(--ai-cyan-deep);
  font-style: italic;
  font-weight: 300;
}

.ai-section-header > p {
  margin: 0;
  color: var(--ai-gray);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

.ai-about {
  padding-top: 112px;
  background: var(--ai-white);
}

.ai-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 80px;
}

.ai-about-copy {
  color: var(--ai-gray);
  font-size: 16px;
}

.ai-about-copy > p {
  margin: 0;
}

.ai-about-copy > p + p {
  margin-top: 28px;
}

.ai-about-copy blockquote {
  margin: 34px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--ai-cyan-deep);
  color: var(--ai-carbon);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.22;
}

.ai-about-media {
  position: relative;
  min-height: 510px;
}

.ai-about-image {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--ai-carbon-soft);
  box-shadow: var(--ai-shadow);
}

.ai-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-about-image-main {
  inset: 0 18% 13% 0;
}

.ai-about-image-secondary {
  width: 43%;
  height: 46%;
  right: 0;
  bottom: 0;
  border: 10px solid var(--ai-white);
}

.ai-about-seal {
  position: absolute;
  top: 8%;
  right: 1%;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border: 1px solid var(--ai-cyan-deep);
  background: var(--ai-carbon);
  color: var(--ai-white);
  text-align: center;
}

.ai-about-seal strong {
  color: var(--ai-cyan);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.ai-about-seal span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.ai-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  margin-top: 74px;
}

.ai-values-grid article {
  min-height: 190px;
  display: grid;
  align-content: end;
  padding: 24px 10px;
  background: var(--ai-white);
}

.ai-values-grid article > span,
.ai-card-number {
  color: var(--ai-cyan-deep);
  font-size: 10px;
  font-weight: 700;
}

.ai-values-grid h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.ai-values-grid p {
  margin: 0;
  color: var(--ai-gray);
  font-size: 15px;
  line-height: 1.65;
}

.ai-services {
  background: var(--ai-carbon-deep);
  color: var(--ai-white);
}

.ai-services .ai-section-header h2 em {
  color: var(--ai-cyan);
}

.ai-services .ai-section-header > p {
  color: rgba(255, 255, 255, 0.58);
}

.ai-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ai-line-light);
  border: 1px solid var(--ai-line-light);
}

.ai-service-card {
  position: relative;
  min-height: 330px;
  padding: 44px;
  overflow: hidden;
  background: var(--ai-carbon-deep);
  transition: background 220ms ease;
}

.ai-service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--ai-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.ai-service-card:hover {
  background: var(--ai-carbon-soft);
}

.ai-service-card:hover::before {
  transform: scaleX(1);
}

.ai-service-card h3 {
  margin: 24px 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.ai-service-card .ai-card-number {
  display: block;
  color: rgba(69, 224, 246, 0.2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 66px;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: 0;
}

.ai-service-card > p {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.ai-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(69, 224, 246, 0.28);
  color: var(--ai-cyan-deep);
  font-size: 9px;
  text-transform: uppercase;
}

.ai-media {
  background: var(--ai-paper);
}

.ai-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  align-items: stretch;
  gap: 26px;
}

.ai-video-frame {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ai-carbon-deep);
  box-shadow: var(--ai-shadow);
}

.ai-video-frame > img,
.ai-video-frame iframe,
.ai-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.ai-video-frame > img {
  opacity: 0.72;
}

.ai-video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  background: rgba(24, 33, 48, 0.46);
  color: var(--ai-white);
  text-align: center;
}

.ai-play-mark {
  width: 62px;
  height: 62px;
  position: relative;
  display: block;
  margin-bottom: 14px;
  border: 1px solid var(--ai-cyan);
  border-radius: 50%;
}

.ai-play-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--ai-cyan);
  transform: translate(-50%, -50%);
}

.ai-video-cover strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.ai-video-cover small {
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
}

.ai-media-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 36px;
  border: 1px solid var(--ai-line);
  border-radius: 3px;
  background: var(--ai-white);
}

.ai-media-panel h3 {
  margin-bottom: 24px;
  font-size: 48px;
}

.ai-media-panel > p:not(.ai-eyebrow) {
  margin: 0 0 28px;
  color: var(--ai-gray);
  font-size: 14px;
}

.ai-projects {
  background: var(--ai-white);
}

.ai-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ai-project-card {
  min-width: 0;
}

.ai-project-stage {
  position: relative;
  min-height: 510px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  border-radius: 3px;
  background: var(--ai-carbon);
  color: var(--ai-white);
  isolation: isolate;
}

.ai-project-slides,
.ai-project-slide,
.ai-project-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ai-project-slide {
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  background: var(--ai-carbon);
  cursor: zoom-in;
  transform: scale(1.025);
  transition: opacity 420ms ease, transform 700ms ease, visibility 420ms ease;
}

.ai-project-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ai-project-slide:focus-visible {
  outline: 2px solid var(--ai-cyan);
  outline-offset: -6px;
}

.ai-project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.ai-project-overlay {
  z-index: 1;
  background: rgba(24, 33, 48, 0.46);
  pointer-events: none;
  transition: background 220ms ease;
}

.ai-project-copy {
  position: absolute;
  z-index: 2;
  inset: auto 24px 82px;
  display: grid;
  pointer-events: none;
}

.ai-project-copy small {
  color: var(--ai-cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.ai-project-copy strong {
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  margin-top: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.ai-project-controls {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(24, 33, 48, 0.82);
  backdrop-filter: blur(10px);
}

.ai-project-controls button,
.ai-gallery-navigation button,
.ai-gallery-close {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ai-white);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ai-project-controls button:hover,
.ai-project-controls button:focus-visible,
.ai-gallery-navigation button:hover,
.ai-gallery-navigation button:focus-visible,
.ai-gallery-close:hover,
.ai-gallery-close:focus-visible {
  background: rgba(69, 224, 246, 0.16);
  color: var(--ai-cyan);
  outline: none;
}

.ai-project-controls > span {
  min-width: 54px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
  text-align: center;
}

.ai-project-stage:hover .ai-project-slide.is-active img,
.ai-project-stage:focus-within .ai-project-slide.is-active img {
  transform: scale(1.045);
}

.ai-project-stage:hover .ai-project-overlay,
.ai-project-stage:focus-within .ai-project-overlay {
  background: rgba(24, 33, 48, 0.28);
}

body.ai-gallery-open {
  overflow: hidden;
}

.ai-gallery-lightbox[hidden] {
  display: none;
}

.ai-gallery-lightbox {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
  cursor: auto;
}

.ai-gallery-lightbox.has-blueprint {
  background-color: #07111a;
  background-image:
    linear-gradient(rgba(69, 224, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 224, 246, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(69, 224, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 224, 246, 0.025) 1px, transparent 1px);
  background-position: center;
  background-size: 128px 128px, 128px 128px, 24px 24px, 24px 24px;
}

.ai-gallery-lightbox.has-blueprint::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: clamp(24px, 4vw, 64px);
  border: 1px solid rgba(69, 224, 246, 0.13);
  background-image:
    linear-gradient(90deg, transparent 0 16%, rgba(69, 224, 246, 0.1) 16% calc(16% + 1px), transparent calc(16% + 1px) 47%, rgba(69, 224, 246, 0.1) 47% calc(47% + 1px), transparent calc(47% + 1px) 78%, rgba(69, 224, 246, 0.1) 78% calc(78% + 1px), transparent calc(78% + 1px)),
    linear-gradient(transparent 0 21%, rgba(69, 224, 246, 0.1) 21% calc(21% + 1px), transparent calc(21% + 1px) 63%, rgba(69, 224, 246, 0.1) 63% calc(63% + 1px), transparent calc(63% + 1px) 86%, rgba(69, 224, 246, 0.1) 86% calc(86% + 1px), transparent calc(86% + 1px)),
    repeating-linear-gradient(135deg, transparent 0 19px, rgba(69, 224, 246, 0.035) 19px 20px, transparent 20px 40px);
  opacity: 0.75;
  pointer-events: none;
  transform: rotate(-0.7deg);
}

.ai-gallery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(8, 12, 18, 0.94);
  cursor: zoom-out;
}

.ai-gallery-lightbox.has-blueprint .ai-gallery-backdrop {
  background: rgba(5, 10, 16, 0.76);
}

.ai-gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(860px, 88vh);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #101722;
  color: var(--ai-white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  outline: none;
}

.ai-gallery-lightbox.has-blueprint .ai-gallery-dialog {
  border-color: rgba(69, 224, 246, 0.26);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(69, 224, 246, 0.04);
}

.ai-gallery-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 23, 34, 0.82);
  font-size: 25px;
}

.ai-gallery-media {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #0a0f17;
}

.ai-gallery-lightbox.has-blueprint .ai-gallery-media {
  background-color: #08131d;
  background-image:
    linear-gradient(rgba(69, 224, 246, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 224, 246, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 28%, rgba(69, 224, 246, 0.1) 28% calc(28% + 1px), transparent calc(28% + 1px) 72%, rgba(69, 224, 246, 0.1) 72% calc(72% + 1px), transparent calc(72% + 1px));
  background-position: center;
  background-size: 32px 32px, 32px 32px, 220px 100%;
}

.ai-gallery-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ai-gallery-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ai-gallery-footer > div:first-child {
  display: grid;
  gap: 4px;
}

.ai-gallery-footer small {
  color: var(--ai-cyan);
  font-size: 9px;
  text-transform: uppercase;
}

.ai-gallery-footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.ai-gallery-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-gallery-navigation button {
  width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-gallery-navigation button:disabled {
  opacity: 0.35;
  cursor: default;
}

.ai-gallery-navigation > span {
  min-width: 70px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-align: center;
}

.ai-footer {
  position: relative;
  padding: 32px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--ai-line-light);
  background: var(--ai-carbon-deep);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.ai-footer-shell {
  width: min(var(--ai-shell), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.ai-footer a {
  color: var(--ai-white);
  text-decoration: none;
}

.customize-partial-edit-shortcut {
  z-index: 10000;
}

.ai-hero > .customize-partial-edit-shortcut,
.ai-section > .customize-partial-edit-shortcut,
.ai-footer > .customize-partial-edit-shortcut {
  top: 20px;
  left: 20px;
}

/* Internal page templates */
.ai-page-shell {
  min-height: 100vh;
  background: var(--ai-paper);
}

.ai-page-hero {
  padding: 150px clamp(24px, 5vw, 72px) 74px;
  background: var(--ai-carbon);
  color: var(--ai-white);
}

.ai-page-hero-inner,
.ai-content {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.ai-page-hero h1 {
  font-size: 70px;
}

.ai-page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.68);
}

.ai-content {
  padding: 78px 24px;
}

.ai-content h2,
.ai-content h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

.ai-text-flow {
  color: var(--ai-gray);
  font-size: 16px;
  line-height: 1.85;
}

.ai-text-flow h2,
.ai-text-flow h3 {
  color: var(--ai-carbon);
}

.ai-cards,
.ai-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-card,
.ai-gallery-item,
.ai-media-box {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--ai-line);
  border-radius: 3px;
  background: var(--ai-white);
}

.ai-media-box,
.ai-gallery-item {
  overflow: hidden;
  background: var(--ai-carbon) url("assets/reference/reference-01.jpg") center / cover no-repeat;
}

.ai-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 26px;
}

.ai-video-placeholder,
.ai-feature-panel {
  min-height: 420px;
  display: grid;
  place-content: center;
  padding: 32px;
}

.ai-video-placeholder {
  background: var(--ai-carbon) url("assets/reference/reference-06.jpg") center / cover no-repeat;
  color: var(--ai-white);
  text-align: center;
}

.ai-feature-panel {
  border: 1px solid var(--ai-line);
  background: var(--ai-white);
}

.ai-section-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.ai-split,
.ai-contact-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1180px) {
  .ai-nav {
    grid-template-columns: minmax(200px, 1fr) auto minmax(180px, 1fr);
  }

  .ai-nav-links {
    gap: 22px;
  }

  .ai-hero-title {
    font-size: 78px;
  }

  .ai-about-layout {
    gap: 50px;
  }

  .ai-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 800px) and (min-width: 961px) {
  .ai-nav {
    min-height: 82px;
  }

  .ai-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 82px;
  }

  .ai-hero-copy {
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .ai-eyebrow {
    margin-bottom: 18px;
  }

  .ai-hero-title {
    font-size: 76px;
  }

  .ai-hero-subtitle {
    margin-top: 20px;
    line-height: 1.7;
  }

  .ai-actions {
    margin-top: 24px;
  }

  .ai-hero-stats {
    margin-top: 28px;
  }

  .ai-stat {
    min-height: 72px;
  }

  .ai-hero-visual {
    min-height: 580px;
  }

  .ai-about {
    padding-top: 112px;
  }
}

@media (max-width: 960px) {
  .ai-nav {
    grid-template-columns: 1fr auto;
  }

  .ai-nav-links {
    position: absolute;
    top: 100%;
    right: 24px;
    width: min(330px, calc(100vw - 48px));
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--ai-line-light);
    background: var(--ai-carbon-deep);
    box-shadow: var(--ai-shadow);
  }

  .ai-nav-links.is-open {
    display: grid;
  }

  .ai-nav-links a {
    padding: 14px;
    border-bottom: 1px solid var(--ai-line-light);
  }

  .ai-nav-links a:last-child {
    border-bottom: 0;
  }

  .ai-menu-toggle {
    display: grid;
  }

  .ai-hero {
    position: relative;
    min-height: max(850px, 100svh);
    display: block;
    overflow: hidden;
  }

  .ai-hero-copy {
    position: relative;
    z-index: 3;
    width: min(720px, 100%);
    min-height: 768px;
    padding-top: 92px;
    background: rgba(24, 33, 48, 0.8);
  }

  .ai-hero-visual {
    position: absolute;
    inset: 82px 0 0;
    min-height: 0;
  }

  .ai-about-layout,
  .ai-media-layout {
    grid-template-columns: 1fr;
  }

  .ai-about-copy {
    max-width: 720px;
  }

  .ai-about-media {
    min-height: 560px;
  }

  .ai-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-media-panel {
    min-height: 390px;
  }
}

@media (max-width: 782px) {
  .admin-bar .ai-nav {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .ai-nav {
    min-height: 70px;
    padding-inline: 16px;
  }

  .ai-nav-cta,
  .ai-brand-text small {
    display: none;
  }

  .ai-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .custom-logo {
    width: clamp(142px, 48vw, 188px);
    height: 58px;
    flex-basis: auto;
  }

  .ai-hero {
    min-height: max(790px, 100svh);
    padding-top: 70px;
  }

  .ai-hero-copy {
    min-height: 720px;
    padding: 72px 24px 38px;
  }

  .ai-hero-title {
    font-size: 58px;
  }

  .ai-hero-subtitle {
    font-size: 14px;
  }

  .ai-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .ai-hero-stats-columns-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-stat {
    min-height: 82px;
    padding: 10px 6px;
  }

  .ai-stat strong {
    font-size: 34px;
  }

  .ai-stat span {
    font-size: 8px;
  }

  .ai-hero-visual {
    inset: 70px 0 0;
    min-height: 0;
  }

  .ai-hero-monogram {
    font-size: 126px;
  }

  .ai-section {
    padding: 76px 20px;
  }

  .ai-about {
    padding-top: 76px;
  }

  .ai-section-header {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 40px;
  }

  .ai-section-header-centered {
    justify-items: center;
    text-align: center;
  }

  .ai-section-header h2,
  .ai-media-panel h3,
  .ai-page-hero h1 {
    font-size: 44px;
  }

  .ai-about-copy blockquote {
    font-size: 30px;
  }

  .ai-about-media {
    min-height: 420px;
  }

  .ai-about-image-main {
    inset: 0 12% 16% 0;
  }

  .ai-about-image-secondary {
    width: 48%;
  }

  .ai-about-seal {
    width: 88px;
    height: 88px;
  }

  .ai-values-grid,
  .ai-service-grid,
  .ai-project-grid,
  .ai-video-grid,
  .ai-cards,
  .ai-gallery,
  .ai-split,
  .ai-contact-band {
    grid-template-columns: 1fr;
  }

  .ai-values-grid article {
    min-height: 180px;
  }

  .ai-service-card {
    min-height: 300px;
    padding: 32px;
  }

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

  .ai-service-card .ai-card-number {
    font-size: 56px;
  }

  .ai-video-frame {
    min-height: 420px;
  }

  .ai-media-panel {
    min-height: 340px;
    padding: 28px;
  }

  .ai-project-stage {
    min-height: 430px;
  }

  .ai-gallery-lightbox {
    padding: 0;
  }

  .ai-gallery-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
  }

  .ai-gallery-footer {
    min-height: 108px;
    align-items: end;
    padding: 16px;
  }

  .ai-gallery-footer strong {
    font-size: 22px;
  }

  .ai-footer-shell {
    display: grid;
  }
}

@media (max-width: 420px) {
  .ai-brand-text strong {
    font-size: 16px;
  }

  .ai-hero-title {
    font-size: 46px;
  }

  .ai-actions {
    display: grid;
  }

  .ai-button {
    width: 100%;
  }

  .ai-about-media {
    min-height: 350px;
  }

  .ai-about-seal {
    top: 4%;
  }
}

@media (pointer: fine) {
  body.ai-portal-body {
    cursor: none;
  }

  .ai-cursor,
  .ai-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .ai-cursor {
    width: 7px;
    height: 7px;
    background: var(--ai-cyan);
  }

  .ai-cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(69, 224, 246, 0.54);
  }
}

@media (pointer: coarse) {
  .ai-cursor,
  .ai-cursor-ring {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
