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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, var(--grid-line) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg-page);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--navy);
  background: rgba(0, 252, 146, .45);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  overflow: hidden;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--border-soft);
}

.section:has(.section-inner.compact),
.section.section--compact {
  padding-block: var(--section-y-compact);
}

.section-inner,
.container {
  width: min(100% - calc(var(--content-edge-gap) * 2), var(--page-max));
  margin: 0 auto;
  padding: 0;
}

.section-inner.compact {
  padding-top: 0;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.section-title,
.panel-title,
.subpage-title,
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.05;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
}

.section-kicker,
.eyebrow,
.card-kicker,
.meta-label {
  margin: 0;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
}

.arrow {
  color: var(--green);
  transform: translateX(0);
  transition: transform .24s var(--ease-out);
}

.btn:hover .arrow,
.link-arrow:hover .arrow,
.project-card:hover .arrow,
.service-card:hover .arrow {
  transform: translateX(4px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: .75rem;
  padding: .82rem 1.45rem;
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  color: var(--text-primary);
  background: #fff;
  font-weight: 700;
  font-size: .9rem;
  overflow: hidden;
  transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 162, 254, .35);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0) scale(.985);
  box-shadow: inset 0 2px 8px rgba(3,23,56,.16);
}

.btn-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: buttonRipple .58s var(--ease-out) both;
}

.btn-dark {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.btn-gradient {
  color: #fff;
  background: var(--grad);
  border: 0;
}

.btn-ghost {
  color: var(--navy);
  background: rgba(255,255,255,.82);
}

.btn-light {
  color: var(--navy);
  background: rgba(255,255,255,.96);
  border-color: transparent;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--navy);
  font-weight: 700;
  font-size: .84rem;
}

.logo-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
}

.logo-mark {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--navy);
}

.logo-mark svg {
  width: 17px;
  height: 17px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem .5rem;
  background: rgba(255,255,255,.92);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: width .28s var(--ease-out);
}

.sidebar.is-expanded {
  width: var(--sidebar-expanded-width);
  align-items: flex-start;
}

.sidebar.is-expanded .sidebar-brand {
  margin-left: .5rem;
}

.sidebar.is-expanded .sidebar-menu-button {
  margin-left: .25rem;
}

.sidebar-brand {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.45rem;
}

.sidebar-brand-image {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sidebar-menu-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), opacity .25s;
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  position: absolute;
  left: 0;
}

.hamburger-lines::before {
  top: -6px;
}

.hamburger-lines::after {
  top: 6px;
}

/* Hamburger → back-chevron when expanded */
.sidebar.is-expanded .sidebar-menu-button .hamburger-lines {
  background: transparent;
}

.sidebar.is-expanded .sidebar-menu-button .hamburger-lines::before {
  transform: rotate(-45deg) translate(-3px, -1px) scaleX(.72);
  transform-origin: left center;
}

.sidebar.is-expanded .sidebar-menu-button .hamburger-lines::after {
  transform: rotate(45deg) translate(-3px, 1px) scaleX(.72);
  transform-origin: left center;
}

.sidebar-nav {
  width: 100%;
}

.sidebar-nav ul {
  display: grid;
  gap: .28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  color: rgba(16,24,32,.42);
  border-radius: 8px;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}

.sidebar-link::after {
  position: absolute;
  left: calc(100% + .75rem);
  top: 50%;
  z-index: 10;
  padding: .45rem .65rem;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  content: attr(data-label);
  font-size: .75rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}

.sidebar-link:hover::after,
.sidebar-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.nav-number {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: .62rem;
  font-weight: 800;
}

.nav-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: transparent;
}

.nav-icon::before {
  display: block;
  width: 20px;
  height: 20px;
  background-image: var(--icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  filter: grayscale(1) opacity(.48);
  transition: filter .2s var(--ease-out), transform .2s var(--ease-out);
}

.sidebar-link:hover .nav-icon::before,
.sidebar-link.is-active .nav-icon::before {
  filter: none;
  transform: scale(1.04);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--green);
  background: rgba(0,252,146,.08);
}

/* Expanded sidebar nav */
.sidebar.is-expanded .sidebar-nav ul {
  padding: 0 .35rem;
}

.sidebar.is-expanded .sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0 .75rem;
  gap: .7rem;
  border-radius: 8px;
}

/* Suppress hover tooltip when expanded (label shown inline) */
.sidebar.is-expanded .sidebar-link::after {
  position: static;
  opacity: 1;
  transform: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .28s var(--ease-out);
}

.sidebar.is-expanded .sidebar-link:hover::after,
.sidebar.is-expanded .sidebar-link.is-active::after {
  color: var(--navy);
  transform: none;
}

.sidebar.is-expanded .nav-number {
  display: none;
}

.sidebar.is-expanded .sidebar-bottom {
  width: 100%;
  padding: 0 .5rem;
  align-items: flex-start;
}

.sidebar.is-expanded .sidebar-social {
  flex-direction: row;
  gap: .5rem;
}

/* Main content adjusts to expanded sidebar */
body.sidebar-expanded .main {
  margin-left: var(--sidebar-expanded-width);
  width: calc(100% - var(--sidebar-expanded-width));
}

.main {
  transition: margin-left .28s var(--ease-out);
}

.sidebar-bottom {
  display: grid;
  justify-items: center;
  gap: .95rem;
  margin-top: auto;
}

.sidebar-blueprint {
  width: 58px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  opacity: .82;
}

.sidebar-social {
  display: grid;
  gap: .45rem;
}

.sidebar-social a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 50%;
}

.sidebar-social a:hover {
  color: var(--navy);
  border-color: var(--border-soft);
}

.sidebar-copy {
  writing-mode: vertical-rl;
  color: var(--text-muted);
  font-size: .58rem;
}

.mobile-header,
.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 0;
  background: var(--bg-page);
  overflow: hidden;
}

.hero .section-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .50fr) 1fr;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  padding-left: var(--hero-sidebar-gap);
}

.hero-brand {
  position: absolute;
  top: 2rem;
  left: var(--hero-sidebar-gap);
}

.hero-brand-text {
  position: absolute;
  top: 1.65rem;
  left: var(--hero-sidebar-gap);
  z-index: 4;
  font-family: var(--font-heading);
  font-size: clamp(.62rem, .8vw, .76rem);
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--navy);
  text-decoration: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 540px;
  padding-top: 4.8rem;
  padding-bottom: 3.5rem;
}

.hero h1 {
  min-width: 0;
  max-width: 620px;
  margin-top: 1.05rem;
  font-size: clamp(3.4rem, 5.6vw, 6.4rem);
  line-height: .96;
  overflow-wrap: break-word;
}

.hero-title-word,
.hero-title-line,
.hero-heading-line {
  display: block;
}

.hero-heading-line {
  white-space: nowrap;
}

.hero-i-glyph {
  display: inline-block;
  width: .6em;
  height: 1.34em;
  margin: 0 .02em 0 -.02em;
  vertical-align: -.33em;
}

.technical-i-glyph {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 18px rgba(0, 162, 254, .14));
}

.technical-i-glyph path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.technical-i-grid {
  opacity: .42;
  stroke: rgba(0, 162, 254, .28);
  stroke-width: 1.2;
}

.technical-i-shell,
.technical-i-accent {
  fill: rgba(247,248,248,.46);
  stroke: rgba(3, 23, 56, .78);
  stroke-width: 2.1;
}

.technical-i-accent-edge,
.technical-i-panel,
.technical-i-fine {
  stroke: rgba(3, 23, 56, .46);
  stroke-width: 1.35;
}

.technical-i-core {
  stroke: rgba(0, 252, 146, .96);
  stroke-width: 7;
}

.technical-i-blue {
  stroke: rgba(0, 162, 254, .9);
  stroke-width: 2.2;
}

.hero-title-mist {
  position: relative;
  isolation: isolate;
}

.hero-title-fallback,
.hero-title-letters {
  position: relative;
  z-index: 2;
}

.hero-title-letters {
  display: none;
}

.hero-title-mist.is-split .hero-title-fallback {
  display: none;
}

.hero-title-mist.is-split .hero-title-letters {
  display: block;
}

.hero-title-line {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  perspective: 900px;
  transform-style: preserve-3d;
}

.mist-letter {
  display: inline-block;
  transform-origin: 50% 82%;
  backface-visibility: hidden;
  will-change: opacity, transform, filter;
}

.hero-mist-layer {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 999px;
  opacity: 0;
  filter: blur(16px);
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-mist-layer--near {
  inset: 8% -8% 42% -10%;
  background:
    radial-gradient(circle at 34% 48%, rgba(255,255,255,.9), transparent 33%),
    linear-gradient(90deg, rgba(255,255,255,0), rgba(210,246,244,.86), rgba(255,255,255,0));
}

.hero-mist-layer--far {
  inset: 48% 18% -4% -12%;
  background:
    radial-gradient(circle at 48% 52%, rgba(0,252,146,.2), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.68), rgba(0,162,254,.12), rgba(255,255,255,0));
}

.hero-title-dot {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: .18em;
  height: .18em;
  margin-left: .04em;
  border-radius: 50%;
  color: transparent;
  background: var(--grad);
  opacity: 1;
  transform: translateY(.08em) scale(1);
  vertical-align: baseline;
}

.hero-subtitle {
  max-width: 560px;
  margin: 1.15rem 0 0;
  color: var(--text-primary);
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  overflow-wrap: break-word;
}

.hero .eyebrow {
  color: var(--text-secondary);
  font-size: .8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.35rem;
}

.hero-actions .btn {
  text-align: center;
}

.hero-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin-right: 0;
  align-self: stretch;
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg-page) 0%, rgba(247,248,248,.78) 17%, rgba(247,248,248,.08) 46%),
    linear-gradient(0deg, rgba(247,248,248,.92) 0%, rgba(247,248,248,0) 22%);
  content: "";
  pointer-events: none;
}

.hero-venetian-reveal,
.hero-waterfall-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-waterfall-reveal {
  z-index: 2;
}

.hero-venetian-reveal {
  z-index: 3;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-waterfall-reveal svg {
  display: block;
  width: 100%;
  height: 100%;
}

.waterfall-mask-column {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  will-change: transform;
}

.hero-light-streak {
  position: absolute;
  top: -35%;
  bottom: auto;
  width: 12%;
  height: 74%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.42), transparent);
  filter: blur(10px);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(0, -120%, 0) rotate(9deg);
  will-change: opacity, transform;
}

.hero-light-streak:nth-child(2) {
  left: 24%;
}

.hero-light-streak:nth-child(3) {
  left: 58%;
  width: 9%;
  transform: translate3d(0, -120%, 0) rotate(-7deg);
}

.hero-venetian-slice {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  box-shadow:
    inset -16px 0 24px rgba(3,23,56,.16),
    inset 1px 0 0 rgba(255,255,255,.16);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: opacity, transform, filter;
}

.hero-venetian-slice img {
  position: absolute;
  top: 0;
  width: calc(var(--slice-count) * 100%);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-visual::after {
  position: absolute;
  inset: 8% 6% auto auto;
  z-index: 2;
  width: 52%;
  height: 55%;
  border: 1px solid rgba(3,23,56,.09);
  background:
    linear-gradient(90deg, rgba(3,23,56,.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(3,23,56,.08) 1px, transparent 1px) 0 0 / 34px 34px;
  opacity: .42;
  content: "";
  pointer-events: none;
}

.technical-note {
  position: absolute;
  z-index: 3;
  padding: .32rem .55rem .32rem .6rem;
  color: var(--navy);
  background: rgba(255,255,255,.82);
  border-left: 2px solid var(--green);
  backdrop-filter: blur(8px);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.55;
  pointer-events: none;
}

.technical-note.one {
  top: 22%;
  left: 13%;
}

.technical-note.two {
  right: 7%;
  top: 36%;
}

.technical-note.three {
  left: 30%;
  top: 18%;
  writing-mode: vertical-rl;
  border-left: 0;
  border-top: 2px solid var(--green);
}

/* Trust strip */
.trust {
  margin-top: -2.4rem;
  border-bottom: 0;
  background: transparent;
}

.trust .section-inner {
  padding-top: 0;
  padding-bottom: 1.2rem;
}

.trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.trust-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
  min-height: 78px;
  padding: .75rem .95rem;
  border-right: 1px solid var(--border-soft);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  opacity: .72;
}

.trust-item h3 {
  font-size: .78rem;
  line-height: 1.1;
}

.trust-item p {
  margin: .22rem 0 0;
  color: var(--text-muted);
  font-size: .7rem;
  line-height: 1.35;
}

/* Projects */
.projects {
  background: rgba(255,255,255,.72);
}

.project-tabs {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-wrap: wrap;
}

.project-filter {
  position: relative;
  padding: .55rem .8rem;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-filter::after {
  position: absolute;
  right: .8rem;
  bottom: .18rem;
  left: .8rem;
  height: 2px;
  background: var(--grad);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease-out);
}

.project-filter.is-active {
  color: var(--navy);
}

.project-filter.is-active::after,
.project-filter:hover::after {
  transform: scaleX(1);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.round-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.project-card {
  display: flex;
  height: 100%;
  min-height: 300px;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(3,23,56,.045);
  transition: transform .24s var(--ease-out), box-shadow .24s var(--ease-out), border-color .24s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,162,254,.26);
  box-shadow: var(--shadow-soft);
}

.project-media {
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  background: var(--bg-soft);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}

.project-card:hover .project-media img {
  transform: scale(1.055);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .78rem .82rem .78rem;
}

.card-kicker {
  color: var(--green);
}

.project-body h3 {
  margin-top: .38rem;
  font-size: .9rem;
  line-height: 1.18;
}

.project-location {
  margin: .65rem 0 1rem;
  color: var(--text-muted);
  font-size: .74rem;
}

.project-body .link-arrow {
  margin-top: auto;
  font-size: .78rem;
}

.project-card.is-hidden {
  display: none;
}

/* Services and specialties */
.services-specialties {
  background:
    radial-gradient(circle at 88% 18%, rgba(0,252,146,.06), transparent 28%),
    var(--bg-page);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.panel {
  min-width: 0;
  height: 100%;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(3,23,56,.035);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem .95rem;
}

.panel-title {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .75rem;
  padding: 0 1.1rem 1.1rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  min-height: 178px;
  flex-direction: column;
  padding: 1.05rem .8rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,252,146,.11), rgba(0,162,254,.08));
  content: "";
  opacity: 0;
  transform: scaleX(.88);
  transform-origin: left;
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card img {
  width: 38px;
  height: 38px;
  margin: 0 auto .95rem;
  opacity: .72;
}

.service-card h3 {
  color: var(--navy);
  font-size: .78rem;
  line-height: 1.22;
  text-transform: uppercase;
}

.service-card p {
  margin: .55rem 0 .8rem;
  color: var(--text-secondary);
  font-size: .76rem;
  line-height: 1.5;
}

.service-card .arrow {
  margin-top: auto;
}

.specialties-showcase {
  min-width: 0;
  padding-top: clamp(1rem, 2.8vw, 2rem);
}

.specialties-intro {
  max-width: 570px;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.specialties-kicker {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .45rem;
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.specialties-kicker::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  border-radius: 50%;
  content: "";
}

.specialties-title {
  max-width: 100%;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.specialties-intro p:last-child {
  max-width: 43ch;
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: .98rem;
  line-height: 1.65;
}

.specialty-tabs-shell {
  position: relative;
  min-width: 0;
  margin-bottom: .85rem;
}

.specialty-list {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 0;
  overflow: visible;
}

.specialty-scroll-indicator {
  display: none;
}

.specialty-item {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(2.4em, auto);
  gap: .35rem;
  align-items: start;
  justify-items: center;
  min-width: 0;
  min-height: 94px;
  padding: .25rem .65rem 1rem;
  color: rgba(3,23,56,.78);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border-soft);
  text-align: center;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.specialty-item > span:last-child {
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.specialty-item:last-child {
  border-right: 0;
}

.specialty-item::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  content: "";
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}

.specialty-item:hover,
.specialty-item.is-active {
  color: var(--green);
}

.specialty-item.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.specialty-tab-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.specialty-tab-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.specialty-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-width: 0;
  min-height: 430px;
  padding: clamp(1.65rem, 4vw, 3.05rem);
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(3,23,56,.06);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(3,23,56,.09);
}

.specialty-card::before {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background:
    radial-gradient(rgba(0,162,254,.16) 1px, transparent 1px) 0 0 / 13px 13px;
  content: "";
  opacity: .48;
}

.specialty-card::after {
  position: absolute;
  right: 9%;
  top: 12%;
  width: min(32vw, 360px);
  height: min(27vw, 300px);
  background: rgba(0,252,146,.08);
  clip-path: polygon(28% 18%, 100% 0, 100% 100%, 0 86%);
  content: "";
}

.specialty-card > * {
  position: relative;
  z-index: 1;
}

.specialty-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.specialty-index {
  display: inline-grid;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: .94rem;
  font-weight: 900;
}

.specialty-index::after {
  width: 42px;
  height: 2px;
  background: var(--green);
  content: "";
}

.specialty-card h3 {
  max-width: 100%;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.specialty-lead {
  max-width: 44ch;
  margin: 1rem 0 1.25rem;
  color: var(--text-secondary);
  font-size: .96rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.specialty-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  width: 100%;
  margin: 0 0 1.55rem;
  padding: 0;
  list-style: none;
}

.specialty-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .55rem;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: .75rem .85rem;
  color: rgba(3,23,56,.82);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(3,23,56,.09);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(3,23,56,.04);
  font-size: .82rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.specialty-point-marker {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.specialty-point-marker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,252,146,.1);
  content: "";
}

.specialty-card .link-arrow {
  margin-top: auto;
  color: var(--navy);
  font-weight: 900;
}

.specialty-visual {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
}

.specialty-visual::before,
.specialty-visual::after {
  position: absolute;
  inset: 12% 6%;
  border: 1px solid rgba(0,162,254,.16);
  content: "";
  transform: skewY(-13deg);
}

.specialty-visual::after {
  inset: 24% 16% 8% 0;
  border-color: rgba(0,252,146,.24);
  transform: skewY(-13deg) translateX(8%);
}

.specialty-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 560px);
  height: min(34vw, 330px);
  min-height: 260px;
  object-fit: contain;
  object-position: center;
  filter: saturate(.95) contrast(1.04);
  mix-blend-mode: multiply;
}

/* Areas */
.areas {
  background: rgba(255,255,255,.75);
}

.areas-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.area-item {
  display: grid;
  grid-template-rows: 40px minmax(2.4em, auto);
  min-height: 96px;
  place-items: center;
  padding: 1rem .55rem;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}

.area-item:last-child {
  border-right: 0;
}

.area-item img {
  width: 36px;
  height: 36px;
  margin-bottom: .5rem;
  opacity: .76;
}

.area-item span {
  font-size: .8rem;
  font-weight: 700;
}

/* Approach */
.approach {
  background: var(--bg-page);
}

.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
  gap: 1.6rem;
  align-items: center;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  padding-top: 1.8rem;
}

.timeline::before {
  position: absolute;
  top: 2.95rem;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,252,146,.6), rgba(0,162,254,.62));
  content: "";
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.timeline-step:nth-child(even) .timeline-number {
  border-color: var(--blue);
}

.timeline-step h3 {
  font-size: .82rem;
}

.timeline-step p {
  margin: .55rem 0 0;
  color: var(--text-muted);
  font-size: .75rem;
}

.approach-illustration {
  justify-self: end;
  width: min(100%, 520px);
  margin: 0;
  opacity: .95;
}

.approach-illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px rgba(3,23,56,.08));
}

/* About and careers */
.about-careers {
  background: rgba(255,255,255,.76);
}

.about-careers-grid {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 1rem;
}

.about-card,
.careers-card {
  overflow: hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 75%;
  background: url("../assets/illustrations/clean/full-building-transparent.png") right bottom / contain no-repeat;
  content: "";
  opacity: .28;
  pointer-events: none;
}

.about-copy {
  position: relative;
  z-index: 1;
  padding: 1.45rem;
}

.metrics-grid {
  position: relative;
  z-index: 1;
  padding: 1.45rem;
}

.about-copy p,
.careers-copy p {
  margin: .85rem 0 1.25rem;
  color: var(--text-secondary);
  font-size: .92rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  gap: 1rem;
  border-left: 1px solid var(--border-soft);
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border-left: 0;
  border-top: 1px solid var(--border-soft);
}

.kpi-grid .metric {
  padding: 1.2rem 1.35rem;
  border-right: 1px solid var(--border-soft);
}

.kpi-grid .metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.careers-card {
  display: grid;
  grid-template-columns: .86fr 1fr;
  align-items: stretch;
}

.careers-copy {
  padding: 1.45rem;
}

.careers-image {
  min-height: 265px;
}

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

/* Contact */
.contact {
  background: var(--bg-page);
}

.contact-grid {
  display: grid;
  grid-template-columns: .78fr 1fr 1fr;
  gap: 1rem;
}

.contact-info,
.form-card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(3,23,56,.035);
}

.contact-info {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
}

.contact-info::after {
  position: absolute;
  right: -3rem;
  bottom: -1.4rem;
  width: 78%;
  height: 44%;
  background: url("../assets/illustrations/clean/house-transparent.png") right bottom / contain no-repeat;
  content: "";
  opacity: .30;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.45rem 0 0;
}

.contact-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: .8rem;
}

.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.contact-row strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
}

.contact-row span,
.contact-row a {
  color: var(--text-secondary);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.contact-row small {
  display: block;
  margin-top: .2rem;
  color: var(--text-muted);
  font-size: .72rem;
}

.form-card {
  padding: 1.45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.1rem;
}

.field {
  display: grid;
  gap: .35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-secondary);
  font-size: .76rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: .62rem 0;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-medium);
  border-radius: 0;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.field textarea {
  min-height: 106px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 1px 0 var(--green);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #d73535;
}

.field-error {
  min-height: 1rem;
  color: #b92828;
  font-size: .72rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}

.form-card .btn,
.tab-form-pane .btn[type="submit"] {
  width: 100%;
  margin-top: 1.1rem;
}

.contact-pane .btn[type="submit"] {
  width: auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  min-height: 40px;
  font-size: .84rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: .95rem 1.05rem;
  border-radius: .75rem;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 35px rgba(3,23,56,.08);
  animation: feedbackIn .25s var(--ease-out) both;
}

.form-feedback--success {
  color: #064d32;
  background: rgba(0,252,146,.18);
  border: 1px solid rgba(0,252,146,.42);
}

.form-feedback--error {
  color: #7a1d1d;
  background: rgba(255,75,75,.14);
  border: 1px solid rgba(255,75,75,.38);
}

.toast-region {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  gap: .75rem;
  width: min(390px, calc(100vw - 2rem));
  pointer-events: none;
}

.operation-toast {
  position: relative;
  display: grid;
  gap: .2rem;
  align-items: start;
  min-height: 74px;
  padding: .9rem 3rem .95rem 2.15rem;
  border-radius: .75rem;
  box-shadow: 0 16px 44px rgba(3,23,56,.14);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: toastIn .22s var(--ease-out) both;
}

.operation-toast::before {
  position: absolute;
  top: 1.14rem;
  left: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
}

.operation-toast__label {
  color: currentColor;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.operation-toast__message {
  color: var(--text-primary);
  font-size: .88rem;
  line-height: 1.45;
}

.operation-toast__close {
  position: absolute;
  top: .62rem;
  right: .62rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: currentColor;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .16s var(--ease-out), transform .16s var(--ease-out);
}

.operation-toast__close:hover {
  background: rgba(255,255,255,.68);
  transform: translateY(-1px);
}

.operation-toast.is-hiding {
  animation: toastOut .18s var(--ease-out) both;
}

.operation-toast--success {
  color: #064d32;
  background: rgba(0,252,146,.2);
  border: 1px solid rgba(0,156,90,.28);
}

.operation-toast--success::before {
  background: #009c5a;
  box-shadow: 0 0 0 6px rgba(0,156,90,.12);
}

.operation-toast--error {
  color: #7a1d1d;
  background: rgba(255,75,75,.18);
  border: 1px solid rgba(210,42,42,.3);
}

.operation-toast--error::before {
  background: #d22a2a;
  box-shadow: 0 0 0 6px rgba(210,42,42,.12);
}

button.is-loading {
  pointer-events: none;
  opacity: .75;
}

button.is-loading::after {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .6rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin .7s linear infinite;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .65rem;
  align-items: start;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: .2rem;
  accent-color: var(--green);
}

/* Contact premium layout */
.contact-premium-grid {
  display: grid;
  grid-template-columns: minmax(200px, .34fr) 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.forms-tabs,
.tab-form-pane {
  min-height: 100%;
}

.tab-form-pane {
  flex-direction: column;
}

#tab-contact:checked ~ .contact-pane,
#tab-quote:checked ~ .quote-pane {
  display: flex;
}

/* Tab forms */
.forms-tabs {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(3,23,56,.035);
  overflow: hidden;
}

.tab-radio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.form-tab-labels {
  display: flex;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.form-tab-labels label {
  flex: 1;
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .22s var(--ease-out), background .22s var(--ease-out), border-color .22s var(--ease-out);
}

.form-tab-labels label:hover {
  color: var(--navy);
  background: rgba(255,255,255,.6);
}

#tab-contact:checked ~ .form-tab-labels label[for="tab-contact"],
#tab-quote:checked ~ .form-tab-labels label[for="tab-quote"] {
  color: var(--navy);
  background: #fff;
  border-bottom-color: var(--green);
}

.tab-form-pane {
  display: none;
  padding: 1.5rem 1.75rem 1.75rem;
}

.tab-form-pane .form-grid {
  flex: 1;
  align-content: start;
}

.hidden-field {
  display: none;
}

/* File upload */
.file-drop {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .78rem 1rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1.5px dashed var(--border-medium);
  border-radius: 5px;
  cursor: pointer;
  font-size: .86rem;
  transition: border-color .22s var(--ease-out), background .22s var(--ease-out);
  margin-top: .25rem;
}

.file-drop:hover {
  border-color: var(--blue);
  background: rgba(0,162,254,.04);
  color: var(--navy);
}

.native-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: clamp(.75rem, 2vw, 1.25rem);
  left: calc(var(--sidebar-width) + clamp(.75rem, 2vw, 1.25rem));
  right: clamp(.75rem, 2vw, 1.25rem);
  z-index: 300;
  padding: 1.2rem 1.35rem;
  background: var(--bg-soft);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 45px rgba(3,23,56,.12);
  transform: translateY(calc(100% + 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform .42s var(--ease-out), opacity .42s var(--ease-out);
}

.cookie-banner-close {
  position: absolute;
  top: .65rem;
  right: .75rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 1.15rem;
  line-height: 1;
  transition: color .22s var(--ease-out), border-color .22s var(--ease-out), background .22s var(--ease-out);
}

.cookie-banner-close:hover {
  color: var(--navy);
  background: rgba(255,255,255,.72);
  border-color: var(--border-soft);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-expanded .cookie-banner {
  left: calc(var(--sidebar-expanded-width) + clamp(.75rem, 2vw, 1.25rem));
}

.cookie-banner-spacer {
  height: var(--cookie-banner-spacer-height, 0);
  display: none;
}

.cookie-banner-spacer.is-active {
  display: block;
}

.cookie-banner details {
  width: 100%;
  padding-right: 2rem;
}

.cookie-banner summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cookie-banner p {
  margin: .85rem 0;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0,252,146,.9);
  text-underline-offset: .18em;
}

.cookie-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .85rem;
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-form label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.cookie-form input[type="checkbox"] {
  accent-color: var(--green);
}

.cookie-form .btn {
  margin-left: auto;
  min-height: 36px;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 500;
}

/* Job listings */
.job-listings {
  display: grid;
  gap: 1rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(3,23,56,.03);
  transition: border-color .22s var(--ease-out), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
}

.job-card:hover {
  border-color: rgba(0,162,254,.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.job-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}

.job-location {
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.job-card h3 {
  font-size: 1.18rem;
  margin-bottom: .6rem;
}

.job-card > p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.job-type {
  padding: .3rem .65rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* CTA and footer */
.final-cta {
  overflow: hidden;
  padding-block: var(--section-y-compact);
  color: #fff;
  background: transparent;
}

.final-cta .section-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  min-height: 120px;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) clamp(2rem, 4vw, 3rem);
  background: var(--grad);
  border-radius: 0;
  box-shadow: none;
}

.final-cta .section-inner > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.12;
  font-weight: 800;
}

.final-cta p {
  margin: .35rem 0 0;
  color: rgba(255,255,255,.88);
}

.final-cta .btn {
  min-width: 180px;
  color: var(--navy);
  background: rgba(255,255,255,.96);
  border-color: transparent;
  border-radius: 999px;
  font-weight: 500;
}

.final-cta .btn:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(3,23,56,.16);
}

.final-cta .arrow {
  color: currentColor;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y-compact);
  background: #fff;
}

.site-footer::after {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(360px, 32vw);
  height: 80%;
  background: url("../assets/illustrations/clean/building-transparent.png") right bottom / contain no-repeat;
  content: "";
  opacity: .26;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr .7fr .9fr 1.05fr 1.05fr;
  gap: 2rem;
}

.footer-brand img {
  width: 170px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-col li,
.footer-col p {
  color: var(--text-secondary);
  font-size: .84rem;
}

.footer-col h2,
.footer-col h3 {
  margin: 0 0 .8rem;
  font-size: .78rem;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.footer-social a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 800;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: .76rem;
}

.footer-licenses-inline {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-licenses-inline span::before {
  content: "·";
  margin-right: 1.25rem;
  opacity: .4;
}

.footer-licenses-inline span:first-child::before {
  content: none;
}

.legal-links {
  display: flex;
  gap: 1.25rem;
}

/* Subpages */
.subpage-hero {
  background:
    linear-gradient(90deg, rgba(247,248,248,.96), rgba(247,248,248,.78)),
    var(--bg-page);
}

.subpage-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, .52fr);
  gap: 2rem;
  align-items: center;
  min-height: 430px;
}

.subpage-title {
  margin-top: .9rem;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
}

.subpage-lead {
  max-width: 700px;
  margin: 1rem 0 1.6rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.subpage-media {
  position: relative;
}

.subpage-media img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card {
  min-height: 150px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.info-card h3 {
  font-size: 1rem;
}

.info-card p {
  margin: .65rem 0 0;
  color: var(--text-secondary);
  font-size: .9rem;
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.area-pill {
  padding: .9rem 1rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  font-weight: 700;
}

.empty-state {
  padding: 1.4rem;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.application-form {
  max-width: 980px;
}

.legal-page .subpage-hero .section-inner {
  grid-template-columns: minmax(0, .78fr) minmax(240px, .22fr);
}

.legal-status {
  align-self: start;
  padding: 1rem;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.legal-status strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--navy);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.legal-status span {
  color: var(--text-secondary);
  font-size: .88rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, .22fr) minmax(0, .78fr);
  gap: 1.25rem;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 1.2rem;
  display: grid;
  gap: .35rem;
  padding: 1rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.legal-nav a {
  padding: .42rem 0;
  color: var(--text-secondary);
  font-size: .84rem;
  font-weight: 700;
}

.legal-nav a:hover {
  color: var(--navy);
}

.legal-document {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.legal-section + .legal-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
}

.legal-section h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.legal-section h3 {
  margin: 1.1rem 0 .45rem;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: .94rem;
}

.legal-section p {
  margin: .65rem 0;
}

.legal-section ul {
  display: grid;
  gap: .45rem;
  margin: .75rem 0 0;
  padding-left: 1.15rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.1rem;
}

.project-detail-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 2rem;
}

.project-info {
  position: sticky;
  top: 1.2rem;
  padding: 1.35rem;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.project-info h1 {
  margin: .7rem 0 .4rem;
  font-size: clamp(1.55rem, 2.8vw, 2.8rem);
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.05;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0;
}

.tag {
  padding: .38rem .58rem;
  color: var(--navy);
  background: var(--grad-soft);
  border: 1px solid rgba(0,162,254,.16);
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 800;
}

.metadata {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}

.metadata div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: .84rem;
}

.metadata strong {
  color: var(--text-primary);
}

.gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.48 / 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.gallery-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .42rem .6rem;
  color: #fff;
  background: rgba(3,23,56,.78);
  border-radius: 4px;
  font-weight: 800;
}

.gallery-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: .5rem;
}

.gallery-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
}

.gallery.is-single .gallery-counter,
.gallery.is-single .gallery-controls,
.gallery.is-single .thumbnails {
  display: none;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}

.thumbnail {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1.25 / 1;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 5px;
}

.thumbnail.is-active {
  border-color: var(--green);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.specialties-involved {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.specialties-involved .area-pill {
  flex: 1 1 auto;
  text-align: center;
}
