/*--------------------------------------------------------------
# Inner pages: services, solutions, projects, contact, blog, 404.
# Loaded after theme.css.
--------------------------------------------------------------*/
.lg-theme main section.in-hero {
  position: relative;
  padding: clamp(6.5rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4.25rem);
  background: var(--ink);
  overflow: clip;
}

.in-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 70% at 78% 45%, rgba(54, 70, 166, 0.3), transparent 72%),
    linear-gradient(180deg, transparent 70%, rgba(11, 16, 32, 0.6) 100%);
}

.in-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.in-hero__grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.in-hero__grid--solo .in-hero__title,
.in-hero__grid--solo .in-hero__lead {
  max-width: 44rem;
}

.in-hero__copy {
  transform: translateY(calc(var(--hero-out, 0) * -50px));
  opacity: calc(1 - var(--hero-out, 0) * 1.15);
}

.in-hero__media {
  transform: translateY(calc(var(--hero-out, 0) * 40px));
}

/* Hero entrances run on CSS alone, so above-the-fold content never waits for scripts */
.in-enter {
  animation: in-enter 0.9s var(--ease) var(--d, 0s) backwards;
}

.in-enter-wipe {
  animation: in-enter-wipe 1.2s var(--ease) 0.1s backwards;
}

@keyframes in-enter {
  from {
    opacity: 0.01;
    transform: translateY(16px);
  }
}

@keyframes in-enter-wipe {
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(-6%);
  }
}

.in-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  color: rgba(255, 255, 255, 0.6);
}

.in-crumbs a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

.in-crumbs a:hover {
  color: #fff;
  border-bottom-color: var(--coral);
}

.in-hero .h-eyebrow {
  margin-bottom: 0.9rem;
}

.in-hero__title {
  margin: 0;
  max-width: 17em;
  font-size: var(--type-inner-h1);
  line-height: 1.12;
  color: #fff;
}

.in-hero__title .h-w > span {
  transform: translateY(112%);
  animation: in-rise 1.1s var(--ease) forwards;
  animation-delay: calc(var(--n) * 42ms + 100ms);
}

@keyframes in-rise {
  to {
    transform: none;
  }
}

.in-hero__sub {
  margin: 0.95rem 0 0;
  max-width: 40rem;
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.4;
  color: #d5d9e8;
}

.in-hero__lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: var(--type-lead);
  line-height: 1.58;
  color: #d5d9e8;
}

.in-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--hairline-light);
}

.in-fig {
  min-width: 0;
}

.in-fig b {
  display: block;
  font-family: var(--heading-font);
  font-size: var(--type-h2-sm);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.in-fig b.is-text {
  font-size: var(--type-h4);
  line-height: 1.3;
}

.in-fig > span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--mono-font);
  font-size: var(--type-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--periwinkle);
}

.in-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/
.in-gallery__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  border-radius: 10px;
  background: #fff;
}

.in-gallery__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
  cursor: zoom-in;
}

.in-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.in-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.06);
  transition: transform 7s linear;
  -webkit-user-drag: none;
}

.in-gallery__slide.is-active img {
  transform: none;
}

.in-fit--cover img,
img.in-fit--cover {
  object-fit: cover;
}

.in-fit--contain img,
img.in-fit--contain {
  object-fit: contain;
  padding: 1rem;
}

.in-tone--light {
  background: #fff;
}

.in-tone--dark {
  background: #060810;
}

.in-gallery__zoom {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(11, 16, 32, 0.84);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}

.in-gallery__slide:hover .in-gallery__zoom,
.in-gallery__slide:focus-visible .in-gallery__zoom {
  opacity: 1;
  transform: none;
}

.in-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.in-gallery__thumb {
  position: relative;
  flex: 1;
  min-width: 0;
  height: clamp(44px, 5vw, 66px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}

.in-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
}

.in-gallery__thumb.in-fit--contain img {
  padding: 0.2rem;
  object-fit: contain;
}

.in-gallery__thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.in-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--coral);
}

.in-gallery__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.in-gallery.is-auto .in-gallery__thumb.is-active .in-gallery__bar {
  animation: h-progress 6s linear forwards;
}

.in-gallery.is-held .in-gallery__thumb.is-active .in-gallery__bar,
.in-gallery.is-away .in-gallery__thumb.is-active .in-gallery__bar {
  animation-play-state: paused;
}

/*--------------------------------------------------------------
# Article layout and side rail
--------------------------------------------------------------*/
.in-body {
  background: var(--paper);
  color: var(--muted);
}

.in-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.in-rail__sticky {
  position: sticky;
  top: 92px;
}

.in-rail__label {
  margin: 0 0 0.7rem;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.in-toc {
  position: relative;
}

.in-toc__track {
  position: absolute;
  left: 0;
  top: 2.05rem;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
}

.in-toc__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.in-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-toc a {
  display: block;
  padding: 0.34rem 0 0.34rem 1rem;
  font-size: var(--type-small);
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.3s, transform 0.5s var(--ease);
}

.in-toc a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.in-toc a.is-active {
  font-weight: 600;
  color: var(--text);
}

.in-rail__group {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}

.in-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-tags li {
  padding: 0.18rem 0.58rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono-font);
  font-size: var(--type-micro);
  color: var(--text);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.in-tags li:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
}

.in-rail__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-rail__links a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: var(--type-small);
  font-weight: 500;
  line-height: 1.35;
  color: var(--coral-deep);
}

.in-rail__links i {
  transition: transform 0.4s var(--ease);
}

.in-rail__links a:hover i {
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# Content blocks
--------------------------------------------------------------*/
.in-article {
  min-width: 0;
}

.lg-theme main section.in-block {
  padding: clamp(1.75rem, 3.2vw, 2.75rem) 0;
  box-shadow: 0 -1px 0 var(--hairline); /* main.css forces a coral border colour on every section */
  scroll-margin-top: 84px;
  background: none;
  overflow: visible;
}

.lg-theme main section.in-block:first-child {
  padding-top: 0;
  box-shadow: none;
}

.in-block__title {
  margin: 0 0 0.7rem;
  font-size: var(--type-h2-sm);
  line-height: 1.16;
}

.in-block__intro {
  margin: 0 0 1.2rem;
  max-width: 44rem;
  font-size: var(--type-lead);
  line-height: 1.55;
}

.in-lead {
  margin: 0 0 1rem;
  max-width: 50rem;
  font-family: var(--heading-font);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--text);
}

.in-para {
  margin: 0 0 0.9rem;
  max-width: 46rem;
  font-size: var(--type-body);
  line-height: 1.68;
  color: var(--text);
}

.in-para:last-child {
  margin-bottom: 0;
}

.in-scene {
  aspect-ratio: 640 / 120;
  max-width: 50rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.s-trace--line {
  fill: none;
  stroke: var(--periwinkle);
  stroke-width: 2;
}

/* Numbered goals */
.in-nums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-num {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  font-size: var(--type-small);
  line-height: 1.45;
  color: var(--text);
}

.js .in-num.is-in {
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.in-num:hover {
  border-color: var(--coral);
  box-shadow: 0 14px 34px rgba(11, 16, 32, 0.08);
  transform: translateY(-3px);
}

.in-num__n {
  flex: none;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  line-height: 1.8;
  color: var(--coral-deep);
}

/* Route of steps */
.in-steps {
  position: relative;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.in-steps::before,
.in-steps__bar {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--hairline);
}

.in-steps__bar {
  display: block;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.in-step {
  position: relative;
  padding: 0 0 1.25rem 2.1rem;
}

.in-step:last-child {
  padding-bottom: 0;
}

.in-step__pin {
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 16, 32, 0.28);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.6s;
}

.in-step.is-reached .in-step__pin {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 84, 67, 0.18);
}

.in-step h3 {
  margin: 0 0 0.2rem;
  font-size: var(--type-h4);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.in-step p {
  margin: 0;
  max-width: 42rem;
  font-size: var(--type-small);
  line-height: 1.55;
}

/* Tiles: ink wipes up on hover */
.in-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-tile {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
}

.in-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}

.in-tile > * {
  position: relative;
  transition: color 0.35s;
}

.in-tile i {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
  color: var(--coral-deep);
}

.in-tile h3 {
  margin: 0 0 0.25rem;
  font-size: var(--type-h4);
  font-weight: 400;
  line-height: 1.28;
  color: var(--text);
}

.in-tile p {
  margin: 0;
  font-size: var(--type-small);
  line-height: 1.5;
}

.in-tile:hover::before {
  transform: scaleY(1);
}

.in-tile:hover h3 {
  color: #fff;
}

.in-tile:hover p {
  color: #d5d9e8;
}

.in-tile:hover i {
  color: var(--coral);
}

/* Checklist */
.in-checks {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--text);
}

.in-checks i {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: rgba(255, 84, 67, 0.14);
  font-size: 0.9rem;
  color: var(--coral-deep);
}

/* KPIs */
.in-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-kpi {
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--coral);
  background: rgba(255, 255, 255, 0.65);
  font-size: var(--type-small);
  line-height: 1.5;
}

.in-kpi h3 {
  margin: 0 0 0.15rem;
  font-family: var(--default-font);
  font-size: var(--type-small);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.in-kpi p {
  margin: 0;
  color: var(--text);
}

.in-kpi h3 + p {
  color: var(--muted);
}

.in-kpi mark {
  padding: 0;
  background: none;
  font-weight: 700;
  color: var(--coral-deep);
}

/* Accordion */
.in-acc {
  border-top: 1px solid var(--hairline);
}

.in-acc__item {
  border-bottom: 1px solid var(--hairline);
}

.in-acc__heading {
  margin: 0;
  font-size: inherit;
}

.in-acc__heading button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  background: none;
  font-family: var(--heading-font);
  font-size: var(--type-h4);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s, padding 0.5s var(--ease);
}

.in-acc__heading button:hover {
  padding-left: 0.5rem;
  color: var(--coral-deep);
}

.in-acc__heading i {
  flex: none;
  font-size: 1rem;
  color: var(--coral-deep);
  transition: transform 0.6s var(--ease);
}

.in-acc__item.is-open .in-acc__heading i {
  transform: rotate(135deg);
}

.in-acc__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.js .in-acc__item:not(.is-open) .in-acc__panel {
  grid-template-rows: 0fr;
}

.in-acc__clip {
  min-height: 0;
  overflow: hidden;
}

.js .in-acc__item:not(.is-open) .in-acc__clip {
  visibility: hidden;
  transition: visibility 0s 0.6s;
}

.in-acc__clip p {
  margin: 0;
  padding: 0 0 1rem;
  max-width: 44rem;
  font-size: var(--type-small);
  line-height: 1.58;
}

/* Conclusion */
.in-statement {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.in-statement__body {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.lg-theme .in-statement h2.h-eyebrow {
  margin-bottom: 0.8rem;
  font-size: var(--type-label);
  color: var(--periwinkle);
}

.in-statement p {
  margin: 0 0 0.9rem;
  max-width: 46rem;
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.5;
  color: #fff;
}

.in-statement p:last-child {
  margin-bottom: 0;
}

/* Text beside an image */
.in-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem clamp(1.5rem, 3vw, 2.75rem);
}

.is-flipped .in-split__text {
  order: 2;
}

.in-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.in-frame--tall {
  aspect-ratio: 4 / 5;
}

.in-frame__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.in-frame__inner img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Feature explorer */
.in-exp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 1.25rem clamp(1.25rem, 2.6vw, 2.25rem);
  margin-top: 0.3rem;
}

.in-exp__list {
  border-top: 1px solid var(--hairline);
}

.in-exp__item {
  border-bottom: 1px solid var(--hairline);
}

.in-exp__heading {
  margin: 0;
  font-size: inherit;
}

.in-exp__heading button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.72rem 0;
  border: 0;
  background: none;
  font-family: var(--default-font);
  font-size: var(--type-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, padding 0.5s var(--ease);
}

.in-exp__heading button:hover {
  padding-left: 0.4rem;
  color: var(--text);
}

.in-exp__item.is-active .in-exp__heading button {
  color: var(--text);
}

.in-exp__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.in-exp__item.is-active .in-exp__bar {
  transform: scaleX(1);
}

.in-exp.is-live .in-exp__item.is-active .in-exp__bar {
  animation: h-progress 7s linear forwards;
}

.in-exp.is-live.is-held .in-exp__item.is-active .in-exp__bar {
  animation-play-state: paused;
}

.in-exp__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.in-exp__item.is-active .in-exp__panel {
  grid-template-rows: 1fr;
}

.in-exp__clip {
  min-height: 0;
  overflow: hidden;
}

.in-exp__clip p {
  margin: 0;
  padding: 0.15rem 0 0.8rem;
  font-size: var(--type-small);
  line-height: 1.55;
}

.in-list {
  margin: 0;
  padding: 0.15rem 0 0.8rem;
  list-style: none;
}

.in-list li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.1rem;
  font-size: var(--type-small);
  line-height: 1.5;
}

.in-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  background:
    linear-gradient(var(--coral), var(--coral)) center / 100% 1px no-repeat,
    linear-gradient(var(--coral), var(--coral)) center / 1px 100% no-repeat;
}

.in-list b {
  font-weight: 600;
  color: var(--text);
}

.in-exp__media {
  position: sticky;
  top: 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.in-exp__camera {
  position: absolute;
  inset: 0;
  transform-origin: var(--fx) var(--fy);
  transform: scale(var(--fs));
  transition: transform 1.5s var(--ease), transform-origin 1.5s var(--ease);
}

.in-exp__camera img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-position: var(--fx) var(--fy);
  transition: opacity 0.7s, object-position 1.5s var(--ease);
  -webkit-user-drag: none;
}

.in-exp__camera img.is-active {
  opacity: 1;
}

/*--------------------------------------------------------------
# Related projects and next page
--------------------------------------------------------------*/
.lg-theme main section.in-related {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.in-related .h-lead {
  justify-self: end;
  text-align: right;
}

.in-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 1.8vw, 1.6rem);
}

.in-grid .in-card {
  width: auto;
  user-select: auto;
}

.in-grid .h-card__media {
  border: 1px solid var(--hairline);
}

.in-next {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  background: var(--ink);
  color: #fff;
}

.in-next:hover {
  color: #fff;
}

.in-next__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 15vw, 210px) 3.2rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.in-next__copy .h-eyebrow {
  margin-bottom: 0.4rem;
}

.in-next__title {
  display: block;
  font-family: var(--heading-font);
  font-size: var(--type-h2-sm);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.3s, transform 0.6s var(--ease);
}

.in-next:hover .in-next__title {
  color: #ff8a7d;
  transform: translateX(8px);
}

.in-next__media {
  display: block;
  height: clamp(70px, 8vw, 120px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  transition: translate 0.6s var(--ease);
}

.in-next__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.in-next:hover .in-next__media img {
  transform: scale(1.08);
}

.in-next__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.6s var(--ease);
}

.in-next:hover .in-next__go {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  transform: translateX(4px);
}

/*--------------------------------------------------------------
# Projects page
--------------------------------------------------------------*/
.lg-theme main section.in-catalog {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}

.in-catalog .h-filters {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

/*--------------------------------------------------------------
# Contact page
--------------------------------------------------------------*/
.in-reach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.in-reach a,
.in-reach > div {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--hairline-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease);
}

.in-reach a:hover {
  border-color: var(--coral);
  background: rgba(255, 84, 67, 0.08);
  color: #fff;
  transform: translateY(-3px);
}

.in-reach i {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  color: var(--coral);
}

.in-reach h2 {
  margin: 0 0 0.15rem;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--periwinkle);
}

.in-reach p {
  margin: 0;
  font-size: var(--type-small);
  line-height: 1.45;
  color: #fff;
}

.lg-theme main section.in-map {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  background: var(--paper);
}

.in-map__frame {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.in-map__frame iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 380px);
  border: 0;
  filter: saturate(0.85);
  transition: filter 0.5s;
}

.in-map__frame:hover iframe {
  filter: none;
}

.lg-theme main section.contact.contact-form-page {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--paper);
}

.contact-form-page .in-form-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.contact-form-page .in-form-head h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: var(--type-h2);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-transform: none;
  text-align: left;
  color: var(--text);
}

.lg-theme .contact-form-page .in-form-head p {
  margin: 0.4rem 0 0;
  max-width: none;
  font-size: var(--type-lead);
  text-align: left;
  color: var(--muted);
}

.in-meter__track {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--hairline);
}

.in-meter__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}

.in-meter__label {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  text-align: right;
  color: var(--muted);
}

.lg-theme .contact .contact-form-card {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: visible;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 16, 32, 0.06);
}

.lg-theme .contact .contact-form-card::before {
  display: none;
}

.lg-theme .contact .form-section-eyebrow {
  margin-bottom: 1rem;
  font-family: var(--mono-font);
  font-size: var(--type-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.lg-theme .contact .contact-label {
  margin-bottom: 0.35rem;
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--text);
}

.lg-theme .contact .contact-control {
  min-height: 2.9rem;
  border: 1px solid rgba(11, 16, 32, 0.2);
  border-radius: 8px;
  background-color: var(--paper);
  font-size: var(--type-body);
  color: var(--text);
  box-shadow: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.lg-theme .contact .contact-control::placeholder {
  color: #7d8399;
}

.lg-theme .contact .contact-control:focus {
  border-color: var(--coral);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 84, 67, 0.16);
}

.lg-theme .contact .contact-divider {
  margin: 1.75rem 0;
  border-color: var(--hairline);
  opacity: 1;
}

.lg-theme .contact .choice-chip {
  margin: 0;
  transition: transform 0.5s var(--ease);
}

.lg-theme .contact .choice-chip:hover {
  transform: translateY(-2px);
}

.lg-theme .contact .choice-chip span {
  border-radius: 999px;
  border-color: rgba(11, 16, 32, 0.2);
  background: #fff;
  font-size: var(--type-small);
  color: var(--text);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.lg-theme .contact .choice-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.lg-theme .contact .choice-chip input:focus-visible + span {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.lg-theme .contact .contact-hint,
.lg-theme .contact .field-counter,
.lg-theme .contact .form-note {
  font-size: var(--type-caption);
  color: var(--muted);
}

.lg-theme .contact .php-email-form button[type="submit"] {
  padding: 0.85rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  font-weight: 500;
  color: var(--ink);
  box-shadow: none;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.lg-theme .contact .php-email-form button[type="submit"]:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Blog
--------------------------------------------------------------*/
.lg-theme main section.in-blog {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.in-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.in-filter-links a {
  padding: 0.42rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}

.in-filter-links a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.in-filter-links a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.in-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #fff;
}

.in-post__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.in-post:hover .in-post__media img {
  transform: scale(1.06);
}

.in-post h2 {
  margin: 0 0 0.45rem;
  font-size: var(--type-h3);
  line-height: 1.2;
}

.in-post h2 a {
  color: var(--text);
  transition: color 0.3s;
}

.in-post:hover h2 a {
  color: var(--coral-deep);
}

.in-post p {
  margin: 0 0 0.55rem;
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--muted);
}

.in-post time {
  font-family: var(--mono-font);
  font-size: var(--type-label);
  color: var(--muted);
}

.in-empty {
  grid-column: 1 / -1;
  padding: 2.5rem;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  text-align: center;
}

.in-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.in-post-image {
  display: block;
  width: 100%;
  max-height: 480px;
  margin-bottom: 1.75rem;
  border-radius: 10px;
  object-fit: cover;
}

/* Rich text from the blog editor */
.lg-theme .blog-detail-content {
  max-width: 46rem;
  font-size: var(--type-lead);
  line-height: 1.72;
  color: var(--text);
}

.lg-theme .blog-detail-content {
  overflow-wrap: anywhere;
}

/* Posts can bring their own styles from the blog editor: :where() keeps these defaults from overriding them */
:where(.blog-detail-content) :where(h1, h2, h3, h4) {
  margin: 1.8em 0 0.5em;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

:where(.blog-detail-content) :where(h1, h2) {
  font-size: var(--type-h2-sm);
}

:where(.blog-detail-content) :where(h3, h4) {
  font-size: var(--type-h3);
}

:where(.blog-detail-content) > :first-child {
  margin-top: 0;
}

.lg-theme .blog-detail-content img {
  max-width: 100%;
  height: auto;
}

:where(.blog-detail-content) :where(a) {
  color: var(--coral-deep);
  border-bottom: 1px solid currentColor;
}

:where(.blog-detail-content) :where(blockquote) {
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1.2em;
  border-left: 3px solid var(--coral);
  font-family: var(--heading-font);
  font-size: var(--type-h4);
}

:where(.blog-detail-content) :where(table) {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: var(--type-small);
}

:where(.blog-detail-content) :where(th, td) {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--hairline);
}

.in-recent__item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
  color: var(--text);
}

.in-recent__item:hover {
  color: var(--coral-deep);
}

.in-recent__item img {
  width: 76px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
  background: #fff;
}

.in-recent__item strong {
  display: block;
  font-size: var(--type-small);
  font-weight: 500;
  line-height: 1.32;
}

.in-recent__item small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono-font);
  font-size: var(--type-micro);
  color: var(--muted);
}

/*--------------------------------------------------------------
# 404
--------------------------------------------------------------*/
.lg-theme main section.in-lost {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 0 3rem;
  background: var(--ink);
  overflow: clip;
}

.in-lost__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 5rem);
}

.lg-theme .in-lost h1 {
  margin: 0;
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.95;
  color: #fff;
}

.lg-theme .in-lost h2 {
  margin: 0.5rem 0 0.6rem;
  font-size: var(--type-h2);
  line-height: 1.15;
  color: #fff;
}

.in-lost p.in-lost__text {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: var(--type-lead);
  color: #d5d9e8;
}

.in-lost__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  background:
    linear-gradient(var(--hairline-light) 1px, transparent 1px) 0 0 / 25% 25%,
    linear-gradient(90deg, var(--hairline-light) 1px, transparent 1px) 0 0 / 25% 25%,
    rgba(19, 26, 51, 0.8);
}

.in-lost__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.in-lost__route path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  animation: in-route-flow 1.4s linear infinite;
}

@keyframes in-route-flow {
  to {
    stroke-dashoffset: -13;
  }
}

.in-lost__pin {
  position: absolute;
  left: 62%;
  top: 38%;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--coral);
  transform: translate(-50%, -100%);
  transition: left 0.5s var(--ease), top 0.5s var(--ease);
  pointer-events: none;
}

.in-lost__label {
  position: absolute;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.88);
  font-family: var(--mono-font);
  font-size: var(--type-label);
  color: #fff;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1099px) {
  .in-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .in-hero__grid,
  .in-layout,
  .in-post-layout,
  .in-lost__grid,
  .contact-form-page .in-form-head {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The side rail splits up: contents strip above the article, technology and related links after it */
  .in-layout {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .in-rail,
  .in-rail__sticky {
    display: contents;
  }

  .in-toc {
    order: 0;
    min-width: 0;
  }

  .in-article {
    order: 1;
  }

  .in-layout > .in-rail .in-rail__group {
    order: 2;
    margin-top: 0;
  }

  .in-post-layout .in-rail__sticky {
    display: block;
    position: static;
  }

  .in-toc__track,
  .in-toc .in-rail__label {
    display: none;
  }

  .in-toc ul {
    display: flex;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .in-toc ul::-webkit-scrollbar {
    display: none;
  }

  .in-toc a {
    padding: 0.32rem 0.75rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
  }

  .in-toc a:hover {
    transform: none;
  }

  .in-toc a.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .in-rail__group {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .in-exp {
    grid-template-columns: minmax(0, 1fr);
  }

  .in-exp__media {
    position: relative;
    top: 0;
    order: -1;
  }

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

  .in-reach {
    grid-template-columns: minmax(0, 1fr);
  }

  .in-lost__map {
    display: none;
  }

  .in-related .h-lead {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .in-split,
  .in-nums,
  .in-tiles,
  .in-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .is-flipped .in-split__text {
    order: 0;
  }

  .in-next__grid {
    grid-template-columns: minmax(0, 1fr) 3rem;
  }

  .in-next__media {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .in-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .in-figs {
    gap: 0.9rem 1.5rem;
  }
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .in-hero__title .h-w > span,
  .in-enter,
  .in-enter-wipe {
    animation: none;
    transform: none;
  }

  .in-gallery__slide img,
  .in-exp__camera {
    transition: none;
    transform: none;
  }

  .in-lost__route path {
    animation: none;
  }
}

/*--------------------------------------------------------------
# Blog posts: their HTML carries its own fonts, which Poppins replaces
--------------------------------------------------------------*/
.blog-detail-content,
.blog-detail-content *:not(.bi) {
  font-family: var(--default-font) !important;
}
