:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #20232a;
  --muted: #676b74;
  --line: #ded8cf;
  --blue: #185fa5;
  --blue-bright: #31aee9;
  --navy: #171a24;
  --navy-soft: #283044;
  --paper: #fffaf1;
  --warm: #d7c3a2;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(21, 47, 82, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24,95,165,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24,95,165,0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

.site-header {
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid rgba(222, 216, 207, 0.78);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  height: 84px;
  justify-content: space-between;
}

.brand-mark img {
  display: block;
  height: auto;
  max-width: min(286px, 54vw);
}

.brand-mark--studiolab img {
  max-width: min(240px, 48vw);
}

.menu-toggle,
.overlay-close {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  height: 46px;
  justify-content: center;
  padding: 0 18px;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  position: absolute;
  right: 0;
}

.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; width: 14px; }

.overlay-menu {
  background: rgba(12, 21, 34, 0.48);
  inset: 0;
  padding: clamp(14px, 3vw, 36px);
  position: fixed;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.overlay-menu__panel {
  background: #f8fbff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: calc(100vh - clamp(28px, 6vw, 72px));
  padding: clamp(22px, 4vw, 56px);
}

.overlay-menu__top,
.section-heading--split,
.studio-panel,
.footer-grid {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.overlay-menu__top h2,
.section-heading h2,
.studio-panel h2,
.two-col h2 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.overlay-menu__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 68px);
}

.overlay-menu__group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.overlay-menu__group h3 {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.overlay-menu__links {
  display: grid;
  gap: 8px;
}

.overlay-menu__links a {
  border-radius: 7px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  padding: 10px 0;
  text-decoration: none;
}

.overlay-menu__links a:hover {
  color: var(--blue);
}

.hero {
  overflow: hidden;
  padding: clamp(58px, 8vw, 108px) 0 clamp(48px, 7vw, 90px);
  position: relative;
}

.hero::before {
  background: url("/assets/img/studiolab-hero.jpg") center / cover no-repeat;
  border-radius: 999px;
  content: "";
  height: 230px;
  opacity: 0.16;
  position: absolute;
  right: -80px;
  top: 120px;
  transform: rotate(-7deg);
  width: 520px;
  z-index: -1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 26px;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

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

.btn-primary-custom,
.btn-secondary-custom,
.text-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  text-decoration: none;
}

.btn-primary-custom {
  background: var(--blue-bright);
  color: #fff;
  box-shadow: 0 14px 34px rgba(49, 174, 233, 0.28);
}

.btn-secondary-custom {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.hero-media {
  position: relative;
}

.hero-media img,
.project-card img {
  display: block;
  height: auto;
  width: 100%;
}

.hero-media {
  isolation: isolate;
}

.hero-media::before {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 44% 56% 48% 52%;
  content: "";
  inset: 28px -18px -18px 26px;
  position: absolute;
  transform: rotate(4deg);
  z-index: -1;
}

.hero-media img {
  border-radius: 44% 56% 46% 54%;
  box-shadow: 0 24px 80px rgba(39, 40, 44, 0.16);
}

.hero-media--portrait img {
  background: #fff;
  object-fit: cover;
}

.hero-card {
  background: var(--paper);
  border: 1px solid rgba(24, 95, 165, 0.18);
  border-radius: var(--radius);
  bottom: -26px;
  box-shadow: 0 18px 44px rgba(17, 26, 47, 0.12);
  max-width: 310px;
  padding: 18px;
  position: absolute;
  right: 24px;
}

.hero-card blockquote {
  color: var(--navy);
  font-size: 17px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}

.hero-card blockquote::before { content: "“"; }
.hero-card blockquote::after { content: "”"; }

.page-hero {
  background:
    linear-gradient(135deg, rgba(246, 244, 239, 0.96), rgba(255, 255, 255, 0.98)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(92px, 11vw, 142px) 0 clamp(46px, 7vw, 82px);
}

.page-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
}

.page-hero__grid--solo {
  display: block;
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 880;
  line-height: 0.98;
  margin: 0;
  max-width: 940px;
}

.page-hero .lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  margin: 24px 0 0;
  max-width: 760px;
}

.page-hero__image {
  margin: 0;
  position: relative;
}

.page-hero__image::before {
  background: var(--blue-bright);
  content: "";
  inset: 18px -14px -14px 18px;
  opacity: 0.26;
  position: absolute;
}

.page-hero__image img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(31, 35, 43, 0.14);
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.page-content-section {
  padding-top: clamp(46px, 7vw, 82px);
}

.page-shell {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) 270px;
}

.page-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 58px rgba(31, 35, 43, 0.06);
  max-width: 940px;
  padding: clamp(28px, 5vw, 58px);
}

.page-content p,
.page-content li {
  color: var(--text);
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 18px;
}

.page-content h2 {
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 840;
  line-height: 1.12;
  margin: 46px 0 16px;
  padding-top: 34px;
}

.page-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.page-content a {
  color: var(--blue);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.page-content code {
  background: rgba(48, 159, 219, 0.08);
  border: 1px solid rgba(48, 159, 219, 0.16);
  border-radius: 6px;
  color: var(--navy);
  display: inline-block;
  font-size: 0.92em;
  line-height: 1.55;
  margin: 2px 0;
  padding: 2px 6px;
}

.page-content p:has(> code:first-child:last-child) {
  background: rgba(246, 244, 239, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.page-content figure {
  margin: 34px 0;
}

.page-content img {
  display: block;
  height: auto;
  max-width: 100%;
}

.page-content .wp-block-image {
  margin: 34px auto !important;
  text-align: center;
}

.page-content .wp-block-image img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  max-height: 620px;
  max-width: min(100%, 820px);
  object-fit: contain !important;
  width: auto !important;
}

.page-content .wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.page-content .wp-block-image.size-full img,
.page-content .wp-block-image.size-large img {
  width: auto !important;
}

.page-content > img,
.page-content > p > img,
.page-content > a:not(.professional-service-choice) > img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  margin: 34px auto;
  max-height: 620px;
  object-fit: contain;
  width: min(72%, 760px);
}

.page-content img.content-image--portrait,
.page-content img.content-image--square {
  width: min(52%, 520px);
}

.page-content img.content-image--landscape {
  width: min(76%, 800px);
}

.page-content .professional-service-choice {
  display: block;
  margin: 28px 0;
}

.page-content .professional-service-choice img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100% !important;
}

.content-carousel {
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(31, 35, 43, 0.16);
  margin: 38px auto;
  max-width: 820px;
  overflow: hidden;
}

.content-carousel .carousel-item {
  background: #10131d;
}

.content-carousel img {
  height: min(62vh, 620px) !important;
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain !important;
  width: 100% !important;
}

.content-carousel .carousel-control-prev,
.content-carousel .carousel-control-next {
  background: rgba(10, 13, 20, 0.26);
  width: 12%;
}

.page-side {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 94px;
}

.page-side h2 {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.page-side a {
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 620;
  padding: 11px 0;
  text-decoration: none;
}

.page-side a:hover {
  color: var(--blue);
}

.page-figure {
  margin: 0 0 34px;
}

.page-figure img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  display: block;
  height: auto;
  max-width: 100%;
}

.studiolab-page {
  --studio-green: #1f7543;
  --studio-gold: #d6aa21;
  --studio-red: #a9332a;
}

.landing-page {
  overflow: hidden;
}

.landing-page img {
  height: auto;
  max-width: 100%;
}

.studiolab-hero {
  background:
    linear-gradient(90deg, rgba(246, 244, 239, 0.98) 0%, rgba(246, 244, 239, 0.9) 42%, rgba(246, 244, 239, 0.22) 100%),
    url("/media/projects/studiolab/create-3026190_1920.jpg") center right / cover no-repeat;
  overflow: hidden;
  padding: clamp(58px, 8vw, 112px) 0 clamp(52px, 7vw, 94px);
}

.studiolab-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  min-height: clamp(440px, 62vw, 660px);
}

.studiolab-hero h1 {
  color: var(--navy);
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 880;
  line-height: 0.85;
  margin: 0 0 22px;
}

.studiolab-hero__copy > p:not(.eyebrow):not(.lead) {
  color: var(--text);
  font-size: 19px;
  line-height: 1.72;
  margin: 28px 0 0;
  max-width: 680px;
}

.studiolab-hero__media {
  position: relative;
}

.studiolab-hero__media::before {
  border: 2px solid var(--studio-gold);
  content: "";
  inset: 24px -18px -20px 28px;
  position: absolute;
  z-index: 0;
}

.studiolab-hero__media img {
  aspect-ratio: 16 / 10;
  box-shadow: 0 28px 90px rgba(32, 35, 42, 0.18);
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.studiolab-intro {
  padding-bottom: clamp(42px, 6vw, 76px);
}

.studiolab-statement {
  border-left: 5px solid var(--studio-green);
  max-width: 980px;
  padding-left: clamp(22px, 4vw, 42px);
}

.studiolab-statement p {
  color: var(--text);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.48;
  margin: 0 0 22px;
}

.studiolab-photo-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  margin-top: clamp(34px, 5vw, 58px);
}

.studiolab-photo-strip img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.studiolab-photo-strip img:nth-child(3) {
  aspect-ratio: 16 / 9;
}

.studiolab-gallery {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 54px) 0;
}

.studiolab-scroll-gallery {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 56px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.studiolab-scroll-track {
  animation: studiolab-horizontal-scroll 42s linear infinite;
  display: flex;
  gap: 16px;
  width: max-content;
}

.studiolab-scroll-gallery:hover .studiolab-scroll-track {
  animation-play-state: paused;
}

.studiolab-scroll-track img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(31, 35, 43, 0.12);
  display: block;
  flex: 0 0 clamp(260px, 30vw, 420px);
  object-fit: cover;
  width: clamp(260px, 30vw, 420px);
}

@keyframes studiolab-horizontal-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.studiolab-projects,
.studiolab-method {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.studiolab-project-grid,
.studiolab-method-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studiolab-project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.studiolab-project-card img {
  aspect-ratio: 16 / 9;
  background: #fff;
  display: block;
  object-fit: cover;
  width: 100%;
}

.studiolab-project-card span,
.studiolab-method-grid span {
  color: var(--studio-green);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 22px 24px 10px;
  text-transform: uppercase;
}

.studiolab-project-card h3,
.studiolab-method-grid h3,
.studiolab-platform-grid h3 {
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 840;
  line-height: 1.08;
  margin: 0 24px 24px;
}

.studiolab-cases {
  background:
    linear-gradient(135deg, rgba(31, 117, 67, 0.08), rgba(214, 170, 33, 0.08)),
    var(--bg);
}

.studiolab-case-grid,
.studiolab-platform-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studiolab-case-grid article,
.studiolab-platform-grid article,
.studiolab-method-grid article {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
}

.studiolab-method-grid article {
  background:
    linear-gradient(145deg, rgba(31, 117, 67, 0.08), rgba(214, 170, 33, 0.06)),
    #fff;
  border-color: rgba(31, 117, 67, 0.18);
  box-shadow: 0 20px 50px rgba(23, 26, 36, 0.08);
  min-height: 280px;
  position: relative;
}

.studiolab-method-grid article::before {
  background: linear-gradient(90deg, var(--studio-green), var(--studio-gold));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.studiolab-platform-grid article {
  padding: 0;
}

.studiolab-platform-grid img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.studiolab-platform-grid h3 {
  margin-top: 24px;
}

.studiolab-platform-grid p {
  margin-left: 24px;
  margin-right: 24px;
  margin-bottom: 26px;
}

.studiolab-case-grid h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 18px;
}

.studiolab-case-grid p,
.studiolab-platform-grid p,
.studiolab-method-grid p,
.studiolab-closing p,
.studiolab-note {
  color: var(--text);
  font-size: 17px;
  line-height: 1.72;
}

.studiolab-platforms {
  background: var(--bg);
}

.studiolab-method-grid span,
.studiolab-method-grid h3 {
  margin-left: 0;
  margin-right: 0;
}

.studiolab-method-grid span {
  align-items: center;
  background: var(--studio-green);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(31, 117, 67, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  height: clamp(76px, 9vw, 104px);
  justify-content: center;
  letter-spacing: -0.08em;
  line-height: 1;
  margin-bottom: 28px;
  width: clamp(76px, 9vw, 104px);
}

.studiolab-note {
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0 0;
}

.studiolab-closing {
  background:
    linear-gradient(90deg, rgba(23, 26, 36, 0.94) 0%, rgba(23, 26, 36, 0.82) 45%, rgba(23, 26, 36, 0.2) 100%),
    url("/media/projects/studiolab/hand-2208491_1920.jpg") right top / cover no-repeat;
  color: #fff;
  min-height: 560px;
}

.studiolab-closing__grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
}

.studiolab-closing__box {
  max-width: 860px;
}

.studiolab-closing h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 24px;
}

.studiolab-closing p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 780px;
}


.panel-page {
  background: #f2f5f9;
}

.panel-hero {
  background: #f2f5f9;
  padding: clamp(54px, 8vw, 104px) 0 clamp(54px, 8vw, 96px);
  text-align: center;
}

.panel-hero__media {
  margin: 0 auto clamp(34px, 5vw, 62px);
  max-width: 980px;
}

.panel-hero__media img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.panel-hero__copy {
  margin: 0 auto;
  max-width: 880px;
}

.panel-hero h1 {
  color: #171d42;
  font-size: clamp(42px, 6.8vw, 82px);
  font-weight: 880;
  line-height: 0.98;
  margin: 14px 0 20px;
}

.panel-hero .lead {
  color: #52637f;
  margin-left: auto;
  margin-right: auto;
}

.panel-hero .hero-actions {
  justify-content: center;
}

.panel-ai {
  background:
    linear-gradient(135deg, rgba(23, 29, 66, 0.96), rgba(24, 95, 165, 0.82)),
    url("/media/projects/sbdipanel/SBDI-Panel-26-Dashboard-scaled.png") center / cover no-repeat;
  color: #fff;
}

.panel-ai h2,
.panel-ai p {
  color: #fff;
}

.panel-ai .eyebrow {
  color: #91dfff;
}

.panel-features,
.panel-experience {
  background: #fff;
}

.panel-feature-grid,
.panel-experience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-feature-grid article,
.panel-experience-grid article {
  background: #f8fbff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  min-height: 100%;
  padding: 24px;
}

.panel-feature-grid span {
  color: var(--blue-bright);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.panel-feature-grid h3,
.panel-experience-grid h3,
.panel-template-grid h3 {
  color: #171d42;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 850;
  line-height: 1.08;
  margin: 0 0 14px;
}

.panel-feature-grid p,
.panel-experience-grid p,
.panel-template-grid p,
.panel-wide-note,
.panel-tag p {
  color: #506078;
  font-size: 16px;
  line-height: 1.68;
}

.panel-templates {
  background: #f2f5f9;
}

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

.panel-template-grid article {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  overflow: hidden;
}

.panel-template-grid img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.panel-template-grid h3,
.panel-template-grid p {
  margin-left: 24px;
  margin-right: 24px;
}

.panel-template-grid h3 {
  margin-top: 24px;
}

.panel-template-grid p {
  margin-bottom: 26px;
}

.panel-wide-note {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  margin: 18px 0 0;
  padding: 22px 24px;
}

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

.panel-tag {
  background: #171d42;
  color: #fff;
}

.panel-tag__grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
}

.panel-tag h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 24px;
}

.panel-tag p {
  color: #dbe7f6;
}

.panel-tag img {
  background: #fff;
  border-radius: 10px;
  display: block;
  padding: 24px;
  width: 100%;
}

.ailab-page {
  background: #07142f;
}

.ailab-hero {
  align-items: center;
  background: linear-gradient(135deg, #0b1a3e 0%, #10285c 58%, #07142f 100%);
  color: #fff;
  display: flex;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
}

.ailab-hero::after {
  background:
    radial-gradient(circle at 18% 32%, rgba(91,168,255,0.28), transparent 35%),
    radial-gradient(circle at 82% 70%, rgba(126,184,255,0.18), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ailab-hero__content {
  margin: 0 auto;
  max-width: 840px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.ailab-hero h1 {
  color: #e8f0ff;
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 860;
  line-height: 0.92;
  margin: 0 0 22px;
}

.ailab-hero .lead {
  color: #a9bfdd;
  margin: 0 auto;
  max-width: 720px;
}

.ailab-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.ailab-pill-grid span,
.ailab-pill-grid a {
  background: rgba(91,168,255,0.12);
  border: 1px solid rgba(91,168,255,0.34);
  border-radius: 999px;
  color: #8fc2ff;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 14px;
  text-decoration: none;
}

.ailab-section {
  background: #f7fbff;
}

.ailab-section--soft {
  background: #edf5ff;
}

.ailab-section--dark {
  background: linear-gradient(135deg, #07142f 0%, #10285c 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.ailab-section--dark .container {
  position: relative;
  z-index: 2;
}

.ailab-hero--compact {
  min-height: 62vh;
}

.ailab-hero--green {
  background: linear-gradient(135deg, #091a16 0%, #0f3b34 58%, #06100e 100%);
}

.ailab-hero--amber {
  background: linear-gradient(135deg, #1a1200 0%, #4d3305 58%, #120c00 100%);
}

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

.ailab-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ailab-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ailab-demo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ailab-card {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(8, 24, 58, 0.08);
  overflow: hidden;
  text-decoration: none;
}

.ailab-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.ailab-card div {
  padding: 22px;
}

.ailab-card h3 {
  color: #10285c;
  font-size: 24px;
  font-weight: 840;
  margin: 0 0 10px;
}

.ailab-card p {
  color: #506078;
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
}

.ailab-info-card {
  min-height: 100%;
}

.ailab-info-card span {
  color: #5ba8ff;
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ailab-info-card .btn-secondary-custom {
  margin-top: 22px;
}

.ailab-feature-grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.ailab-feature-grid h2,
.ailab-wide-card h2,
.ailab-automation-card h2 {
  color: inherit;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 22px;
}

.ailab-feature-card,
.ailab-wide-card,
.ailab-automation-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(126, 184, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(8, 24, 58, 0.12);
  color: #10285c;
  overflow: hidden;
}

.ailab-feature-card img {
  background: #fff;
  display: block;
  margin: 28px auto 0;
  max-width: min(240px, 65%);
}

.ailab-feature-card div {
  padding: clamp(24px, 3vw, 38px);
}

.ailab-feature-card h3,
.ailab-wide-card h2,
.ailab-automation-card h2 {
  color: #10285c;
}

.ailab-feature-card p,
.ailab-wide-card p,
.ailab-automation-card p {
  color: #506078;
  font-size: 17px;
  line-height: 1.72;
}

.ailab-wide-grid {
  display: grid;
  gap: 24px;
}

.ailab-wide-card {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.ailab-wide-card--reverse img {
  order: 2;
}

.ailab-wide-card img {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ailab-wide-card div,
.ailab-automation-card > div:last-child {
  padding: clamp(28px, 4vw, 54px);
}

.ailab-automation-card {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.ailab-automation-card__media {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.ailab-automation-card__media img {
  border: 1px solid #dce6f2;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.ailab-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.firedreams-page {
  background: #050505;
  color: #f5f5f5;
  font-family: "Courier New", Courier, monospace;
}

.firedreams-hero {
  background:
    linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.92)),
    url("/media/projects/firedreams/schermata-2.png") center / cover no-repeat;
  min-height: calc(100vh - 84px);
  padding: clamp(64px, 8vw, 118px) 0;
  position: relative;
}

.firedreams-hero::after {
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 5px);
  content: "";
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.firedreams-hero__content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.firedreams-logo {
  image-rendering: pixelated;
  margin-bottom: 34px;
  max-width: 620px;
}

.firedreams-hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.firedreams-hero p,
.firedreams-section p,
.firedreams-section li {
  color: #d8d8d8;
  font-size: 17px;
  line-height: 1.72;
}

.firedreams-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.firedreams-button {
  background: #fff;
  border: 2px solid #fff;
  color: #000;
  display: inline-flex;
  font-weight: 900;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  align-items: center;
}

.firedreams-button--ghost {
  background: transparent;
  color: #fff;
}

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

.firedreams-gallery img {
  border: 1px solid #3a3a3a;
  display: block;
  filter: grayscale(1) contrast(1.12);
  image-rendering: pixelated;
  width: 100%;
}

.firedreams-section {
  background: #080808;
  border-top: 1px solid #242424;
}

.firedreams-section h2 {
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-compact {
  padding-top: clamp(44px, 6vw, 80px);
}

.section-heading {
  margin-bottom: clamp(28px, 4vw, 46px);
  max-width: 950px;
}

.section-heading--split p {
  color: var(--muted);
  font-size: 18px;
  max-width: 430px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.two-col article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card-link {
  color: inherit;
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.card-link strong {
  color: var(--blue);
  display: inline-block;
  font-size: 14px;
  font-weight: 850;
  margin-top: 22px;
}

.card-link:hover {
  border-color: rgba(48, 159, 219, 0.38);
  box-shadow: 0 18px 44px rgba(31, 35, 43, 0.08);
  transform: translateY(-2px);
}

.feature-card span,
.project-card span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.feature-card h3,
.project-card h3 {
  color: var(--navy);
  font-size: 28px;
  font-weight: 820;
  margin: 0 0 12px;
}

.feature-card p,
.project-card p,
.two-col p,
.studio-panel p,
.site-footer p {
  color: var(--muted);
  margin: 0;
}

.ecosystem {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,250,241,0.94)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.project-grid,
.main-containers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.container-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 56px rgba(31, 35, 43, 0.08);
}

.container-banner img {
  aspect-ratio: 879 / 500;
  display: block;
  object-fit: cover;
  width: 100%;
}

.container-banner div {
  padding: 24px;
}

.container-banner span,
.ai-mini-content span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.container-banner h3 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 850;
  margin: 0 0 10px;
}

.container-banner p {
  color: var(--muted);
  margin: 0;
}

.ai-mini-banner {
  background: linear-gradient(135deg, #0b1a3e 0%, #10285c 55%, #07142f 100%);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(8, 24, 58, 0.24);
  color: #fff;
  display: block;
  margin-top: 18px;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  text-decoration: none;
}

.ai-mini-banner::after {
  background:
    radial-gradient(circle at 18% 35%, rgba(91,168,255,0.26), transparent 36%),
    radial-gradient(circle at 82% 70%, rgba(126,184,255,0.22), transparent 40%),
    linear-gradient(90deg, rgba(11,26,62,0.82) 0%, rgba(11,26,62,0.55) 48%, rgba(11,26,62,0.18) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ai-mini-canvas {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ai-mini-content {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  position: relative;
  z-index: 2;
}

.ai-mini-content span {
  color: #7eb8ff;
}

.ai-mini-content h3 {
  color: #e8f0ff;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 820;
  line-height: 1.05;
  margin: 0 0 12px;
  max-width: 780px;
}

.ai-mini-content p {
  color: #a9bfdd;
  font-size: 17px;
  margin: 0;
  max-width: 780px;
}

.ai-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 260px;
}

.ai-mini-actions small,
.ai-mini-actions a {
  background: rgba(91,168,255,0.12);
  border: 1px solid rgba(91,168,255,0.34);
  border-radius: 999px;
  color: #8fc2ff;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 13px;
  text-decoration: none;
}

.project-card div {
  padding: 0 24px 24px;
}

.project-card--large {
  grid-row: span 2;
}

.project-card--text {
  background: linear-gradient(135deg, var(--navy), #25324a);
}

.project-card--editorial {
  background:
    linear-gradient(135deg, rgba(24,95,165,0.92), rgba(49,174,233,0.72)),
    url("/assets/img/stefano-hero.png") right bottom / 54% auto no-repeat;
  color: #fff;
  justify-content: flex-end;
  min-height: 410px;
}

.project-card--editorial h3,
.project-card--editorial p {
  color: #fff;
}

.project-card--editorial span {
  color: rgba(255,255,255,0.82);
}

.project-card--text h3,
.project-card--text p {
  color: #fff;
}

.project-card--text span {
  color: var(--blue-bright);
}

.studio-highlight {
  background:
    linear-gradient(135deg, rgba(23,26,36,0.94), rgba(24,95,165,0.72)),
    url("/assets/img/studiolab-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.studio-panel {
  align-items: center;
}

.studio-panel h2,
.studio-panel p {
  color: #fff;
}

.studio-panel p {
  color: #bdc8d8;
  font-size: 19px;
  margin-top: 18px;
  max-width: 760px;
}

.btn-light-custom {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  white-space: nowrap;
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-section {
  background: var(--bg);
}

.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 26px;
}

.news-card time {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.news-card h3 {
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 830;
  line-height: 1.08;
  margin: 0 0 14px;
}

.news-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.news-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.two-col h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 18px;
}

.text-link {
  color: var(--blue);
  justify-content: flex-start;
  min-height: auto;
  padding: 22px 0 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
}

.footer-logo {
  max-width: 230px;
  margin-bottom: 18px;
}

.footer-logo--icon {
  max-width: 132px;
}

.site-footer h2 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 12px;
}

.footer-intro {
  font-size: 14px;
  line-height: 1.6;
  max-width: 310px;
}

.site-footer a {
  color: var(--blue);
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-legal {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin: 28px 0 0;
  padding-top: 18px;
}

@media (max-width: 991px) {
  .hero-grid,
  .page-shell,
  .studiolab-hero__grid,
  .studiolab-photo-strip,
  .studiolab-project-grid,
  .studiolab-case-grid,
  .studiolab-platform-grid,
  .studiolab-method-grid,
  .studiolab-closing__grid,
  .panel-feature-grid,
  .panel-template-grid,
  .panel-experience-grid,
  .panel-tag__grid,
  .ailab-card-grid,
  .ailab-feature-grid,
  .ailab-wide-card,
  .ailab-automation-card,
  .firedreams-gallery,
  .page-hero__grid,
  .feature-grid,
  .project-grid,
  .main-containers,
  .news-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading--split,
  .studio-panel {
    display: block;
  }

  .section-heading--split p {
    margin-top: 18px;
    max-width: 720px;
  }

  .studio-panel .btn-primary-custom {
    margin-top: 28px;
  }

  .studiolab-hero {
    background:
      linear-gradient(rgba(246, 244, 239, 0.92), rgba(246, 244, 239, 0.92)),
      url("/media/projects/studiolab/create-3026190_1920.jpg") center / cover no-repeat;
  }

  .studiolab-hero__grid {
    min-height: auto;
  }

  .ai-mini-content {
    grid-template-columns: 1fr;
  }

  .ai-mini-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .ailab-wide-card--reverse img {
    order: 0;
  }

  .page-content > img,
  .page-content > p > img,
  .page-content > a:not(.professional-service-choice) > img,
  .page-content img.content-image--portrait,
  .page-content img.content-image--square,
  .page-content img.content-image--landscape,
  .page-content .wp-block-image img {
    width: 100% !important;
  }

  .content-carousel {
    max-width: 100%;
  }

  .content-carousel img {
    height: min(58vh, 520px) !important;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 72px;
  }

  .menu-toggle__label {
    display: none;
  }

  .overlay-menu__grid {
    grid-template-columns: 1fr;
  }

  .overlay-menu__panel {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .hero-card {
    bottom: auto;
    margin: -18px 14px 0;
    position: relative;
    right: auto;
  }

  .hero-actions a {
    width: 100%;
  }
}
