:root {
  --lokb-blue: #0098db;
  --lokb-coral: #d24d57;
  --lokb-mint: #49c5b1;
  --lokb-yellow: #ffcd00;
  --lokb-green: #3eb75a;
  --lokb-ice: #c4d4da;
  --lokb-grey: #7c878e;
  --lokb-lilac: #8b84d7;
  --lokb-paper: #f4f6f5;
  --lokb-paper-blue: #eaf4f8;
  --lokb-navy: #052737;
  --lokb-ink: #111315;
  --lokb-line: rgba(17, 19, 21, 0.17);
}

.lokb-case {
  background: var(--lokb-paper);
  color: var(--lokb-ink);
}

.lokb-case img {
  width: 100%;
  height: auto;
}

.lokb-case .button {
  background: var(--lokb-blue);
}

.lokb-case .button:hover {
  background: #007eb7;
}

.case-section {
  position: relative;
  padding-block: var(--section-space);
}

.case-section figure {
  margin: 0;
}

.case-section figcaption {
  margin-top: 11px;
  color: currentColor;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading,
.idea__header,
.identity__header,
.digital__header,
.implementation__header,
.concepts__header,
.context__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.section-heading .eyebrow,
.idea__header .eyebrow,
.identity__header .eyebrow,
.digital__header .eyebrow,
.implementation__header .eyebrow,
.concepts__header .eyebrow {
  grid-column: 1 / span 2;
  padding-top: 0.72em;
}

.section-heading h2,
.idea__header h2,
.identity__header h2,
.digital__header h2,
.implementation__header h2,
.concepts__header h2 {
  grid-column: 3 / span 8;
  max-width: 1180px;
}

.section-heading--with-copy > p:last-child,
.idea__header > p:last-child,
.identity__header > p:last-child,
.digital__header > p:last-child,
.implementation__header > p:last-child,
.concepts__header > p:last-child {
  grid-column: 11 / -1;
  align-self: end;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Hero */

.lokb-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(440px, 42%) minmax(0, 58%);
  overflow: hidden;
  background: #fff;
  color: var(--lokb-ink);
}

.lokb-hero__copy {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(26px, 3.5vw, 58px) clamp(30px, 4.2vw, 78px) clamp(50px, 5.2vw, 88px);
  background: #fff;
}

.lokb-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lokb-hero__meta p,
.lokb-hero__meta span {
  margin: 0;
}

.lokb-hero__meta span {
  color: rgba(17, 19, 21, 0.48);
  white-space: nowrap;
}

.lokb-hero__title {
  align-self: center;
  padding-block: 52px;
}

.lokb-hero__title .eyebrow {
  max-width: 360px;
  margin-bottom: clamp(28px, 3.2vw, 48px);
  color: var(--lokb-blue);
}

.lokb-hero h1 {
  max-width: 730px;
  margin: 0 0 clamp(30px, 3vw, 48px);
  font-size: clamp(70px, 7vw, 122px);
  line-height: 0.88;
  letter-spacing: -0.047em;
}

.lokb-hero__title > p:last-child {
  max-width: 590px;
  margin: 0;
  font-size: clamp(15px, 1.18vw, 20px);
  line-height: 1.48;
}

.lokb-hero__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.lokb-hero__footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lokb-hero__footer > div span {
  padding: 6px 9px;
  border: 1px solid rgba(17, 19, 21, 0.28);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.lokb-hero__footer > a {
  flex: 0 0 auto;
  font-size: 12px;
  text-underline-offset: 0.25em;
}

.lokb-hero__visual {
  position: relative;
  min-width: 0;
  min-height: calc(100svh - var(--header-h));
  margin: 0;
  overflow: hidden;
  background: var(--lokb-paper-blue);
}

.lokb-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lokb-hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 34px;
  margin: 0;
  padding: 9px 11px;
  background: rgba(5, 39, 55, 0.82);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lokb-hero__color {
  position: absolute;
  z-index: 5;
  bottom: 0;
  width: 25%;
  height: 10px;
}

.lokb-hero__color--coral { left: 0; background: var(--lokb-coral); }
.lokb-hero__color--mint { left: 25%; background: var(--lokb-mint); }
.lokb-hero__color--yellow { left: 50%; background: var(--lokb-yellow); }
.lokb-hero__color--lilac { left: 75%; background: var(--lokb-lilac); }

/* Sticky index */

.case-index {
  position: relative;
  z-index: 70;
  top: auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: rgba(244, 246, 245, 0.94);
  border-bottom: 1px solid var(--lokb-line);
  backdrop-filter: blur(16px);
}

.case-index a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid var(--lokb-line);
  color: rgba(17, 19, 21, 0.56);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.case-index a:last-child {
  border-right: 0;
}

.case-index a span {
  color: var(--lokb-blue);
}

.case-index a:is(:hover, :focus-visible),
.case-index a.is-active {
  background: #fff;
  color: var(--lokb-ink);
}

/* Context */

.context {
  background: var(--lokb-paper);
}

.context .section-heading {
  margin-bottom: clamp(70px, 8vw, 126px);
}

.context__lead {
  grid-column: 1 / span 7;
  margin: 0;
  font: 400 clamp(36px, 3.8vw, 66px)/0.99 var(--display);
  letter-spacing: -0.035em;
}

.context__copy {
  grid-column: 9 / -1;
  font-size: 16px;
  line-height: 1.52;
}

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

.context__image {
  margin-top: clamp(72px, 9vw, 142px) !important;
}

.context__image img,
.mark__story img,
.identity__language img,
.identity__palette img,
.digital__concept img,
.implementation__grid img,
.concepts__grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Idea */

.idea {
  overflow: hidden;
  background: var(--lokb-blue);
  color: #fff;
}

.idea__header {
  margin-bottom: clamp(68px, 8vw, 126px);
}

.idea__header > p:last-child {
  color: rgba(255,255,255,0.75);
}

.idea__stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  background: #fff;
  color: var(--lokb-ink);
}

.idea__stage > figure {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 50px);
  background: var(--lokb-paper-blue);
}

.idea__stage > figure img {
  width: 100%;
  height: auto;
}

.idea__quotes {
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.idea__quotes blockquote {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(28px, 4vw, 64px);
}

.idea__quotes blockquote:first-child {
  background: var(--lokb-yellow);
}

.idea__quotes blockquote:last-child {
  background: var(--lokb-mint);
}

.idea__quotes span {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idea__quotes p {
  max-width: 570px;
  margin: 38px 0 0;
  font: 400 clamp(48px, 4vw, 75px)/0.91 var(--display);
  letter-spacing: -0.035em;
}

/* Sign and visual system */

.mark {
  background: #fff;
}

.mark .section-heading {
  margin-bottom: clamp(68px, 8vw, 126px);
}

.mark__logo {
  position: relative;
  min-height: min(62vw, 850px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--lokb-paper-blue);
}

.mark__logo img {
  position: relative;
  z-index: 2;
  width: clamp(230px, 31vw, 520px);
  height: auto;
}

.mark__logo > span {
  position: absolute;
  right: -0.03em;
  bottom: -0.12em;
  color: rgba(0, 152, 219, 0.08);
  font: 400 clamp(150px, 23vw, 400px)/0.8 var(--display);
  letter-spacing: -0.06em;
  pointer-events: none;
}

.mark__story {
  margin-top: clamp(64px, 8vw, 130px) !important;
}

.identity {
  background: var(--lokb-paper-blue);
}

.identity__header {
  margin-bottom: clamp(68px, 8vw, 126px);
}

.palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: clamp(70px, 8vw, 120px);
}

.palette span {
  min-height: clamp(110px, 12vw, 190px);
  display: flex;
  align-items: end;
  padding: 13px;
  background: var(--c);
}

.palette b {
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.palette span:nth-child(4) b,
.palette span:nth-child(6) b {
  color: var(--lokb-ink);
}

.identity__palette {
  margin-top: clamp(58px, 7vw, 110px) !important;
}

.identity-slider {
  margin-top: clamp(80px, 10vw, 150px);
}

.identity-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}

.identity-slider__viewport figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms ease;
}

.identity-slider__viewport figure.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.identity-slider__viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.identity-slider__controls > div {
  display: flex;
  gap: 8px;
}

.identity-slider__controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lokb-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.identity-slider__controls button:hover {
  background: var(--lokb-ink);
  color: #fff;
}

/* Digital */

.digital {
  background: var(--lokb-navy);
  color: #fff;
}

.digital__header {
  margin-bottom: clamp(68px, 8vw, 126px);
}

.digital__header .eyebrow {
  color: var(--lokb-mint);
}

.digital__header > p:last-child {
  color: rgba(255,255,255,0.7);
}

.digital__concept {
  padding: clamp(14px, 2vw, 32px);
  background: #fff;
  color: var(--lokb-ink);
}

.digital__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 2.5vw, 42px);
  margin-top: clamp(70px, 8vw, 126px);
}

.digital__grid figure {
  min-width: 0;
}

.digital__grid figcaption {
  color: rgba(255,255,255,0.62);
}

/* Environment and concepts */

.implementation {
  background: #fff;
}

.implementation__header,
.concepts__header {
  margin-bottom: clamp(68px, 8vw, 126px);
}

.implementation__grid,
.concepts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 54px);
  align-items: start;
}

.implementation__wide,
.concepts__wide {
  grid-column: 1 / -1;
}

.implementation__note {
  max-width: 880px;
  margin: clamp(65px, 7vw, 110px) 0 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--lokb-line);
  color: rgba(17, 19, 21, 0.65);
  font-size: 14px;
}

.concepts {
  background: var(--lokb-paper-blue);
}

/* Result, credits, related */

.result {
  background: var(--lokb-blue);
  color: #fff;
}

.result .section-heading {
  margin-bottom: clamp(70px, 8vw, 126px);
}

.result__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(80px, 10vw, 170px);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.34);
}

.result__grid > div {
  font-size: clamp(20px, 1.6vw, 27px);
  line-height: 1.43;
}

.result__grid > div p:last-child {
  margin-bottom: 0;
}

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

.result__grid li {
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.28);
  font-size: 14px;
}

.result__grid li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.credits {
  background: var(--lokb-coral);
  color: #fff;
}

.credits__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(60px, 8vw, 140px);
}

.credits h2 {
  max-width: 650px;
  margin-top: 36px;
}

.credits__list article {
  display: grid;
  grid-template-columns: 3fr 5fr;
  gap: 30px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.34);
}

.credits__list article:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.34);
}

.credits__list strong {
  font: 400 clamp(30px, 2.7vw, 46px)/0.96 var(--display);
}

.credits__list span {
  color: rgba(255,255,255,0.74);
  font-size: 14px;
}

.related {
  background: var(--lokb-paper);
}

.related__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(60px, 8vw, 150px);
  align-items: center;
}

.related h2 {
  margin: 34px 0;
}

.related__grid > div > p:not(.eyebrow) {
  max-width: 490px;
}

.related__grid > a {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 440px;
  place-items: center;
  background: #dfe5e5;
  color: #fff;
}

.related__grid > a img {
  width: min(70%, 560px);
  height: auto;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.related__grid > a:hover img {
  transform: translateY(-4px) scale(1.02);
}

.related__grid > a span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  background: rgba(5,39,55,0.86);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact */

.case-contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 91% 8%, rgba(73,197,177,0.18), transparent 34%),
    radial-gradient(circle at 35% 44%, rgba(0,152,219,0.17), transparent 42%),
    var(--black);
}

.case-contact .contact__main .eyebrow {
  color: var(--lokb-mint);
}

.case-contact .gradient-text {
  --text-gradient: linear-gradient(104deg, var(--lokb-mint) 0%, var(--lokb-blue) 100%);
}

.case-contact .contact__main .button {
  background: var(--lokb-blue);
}

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
}

.js [data-reveal].is-visible,
.js.is-static [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1199px) {
  .section-heading h2,
  .idea__header h2,
  .identity__header h2,
  .digital__header h2,
  .implementation__header h2,
  .concepts__header h2 {
    grid-column: 3 / span 7;
  }

  .section-heading--with-copy > p:last-child,
  .idea__header > p:last-child,
  .identity__header > p:last-child,
  .digital__header > p:last-child,
  .implementation__header > p:last-child,
  .concepts__header > p:last-child {
    grid-column: 10 / -1;
  }

  .lokb-hero {
    grid-template-columns: minmax(390px, 46%) minmax(0, 54%);
  }

  .lokb-hero__copy {
    padding-inline: 36px;
  }

  .lokb-hero h1 {
    font-size: clamp(64px, 7.6vw, 92px);
  }
}

@media (max-width: 959px) {
  .section-heading,
  .idea__header,
  .identity__header,
  .digital__header,
  .implementation__header,
  .concepts__header {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .section-heading .eyebrow,
  .idea__header .eyebrow,
  .identity__header .eyebrow,
  .digital__header .eyebrow,
  .implementation__header .eyebrow,
  .concepts__header .eyebrow {
    grid-column: 1 / span 2;
  }

  .section-heading h2,
  .idea__header h2,
  .identity__header h2,
  .digital__header h2,
  .implementation__header h2,
  .concepts__header h2 {
    grid-column: 3 / -1;
  }

  .section-heading--with-copy > p:last-child,
  .idea__header > p:last-child,
  .identity__header > p:last-child,
  .digital__header > p:last-child,
  .implementation__header > p:last-child,
  .concepts__header > p:last-child {
    grid-column: 3 / span 5;
    margin-top: 22px;
  }

  .lokb-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .lokb-hero__copy {
    min-height: 710px;
  }

  .lokb-hero__visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .context__lead {
    grid-column: 1 / span 7;
  }

  .context__copy {
    grid-column: 8 / -1;
  }

  .idea__stage {
    grid-template-columns: 1fr;
  }

  .idea__quotes {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .palette {
    grid-template-columns: repeat(4, 1fr);
  }

  .result__grid,
  .credits__grid,
  .related__grid {
    grid-template-columns: 1fr;
  }

  .credits__list {
    margin-top: 34px;
  }
}

@media (max-width: 767px) {
  .case-section {
    padding-block: 82px;
  }

  .case-section figcaption {
    margin-top: 8px;
    font-size: 8px;
  }

  .case-index {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .case-index::-webkit-scrollbar {
    display: none;
  }

  .case-index a {
    min-width: 118px;
    min-height: 48px;
    scroll-snap-align: start;
    font-size: 8px;
  }

  .lokb-hero__copy {
    min-height: min(720px, calc(100svh - var(--header-h)));
    padding: 22px 18px 46px;
  }

  .lokb-hero__meta {
    font-size: 7px;
  }

  .lokb-hero__meta span {
    display: none;
  }

  .lokb-hero__title {
    padding-block: 34px;
  }

  .lokb-hero__title .eyebrow {
    margin-bottom: 28px;
  }

  .lokb-hero h1 {
    font-size: clamp(58px, 19vw, 78px);
    line-height: 0.89;
  }

  .lokb-hero__title > p:last-child {
    font-size: 14px;
  }

  .lokb-hero__footer > div {
    display: none;
  }

  .lokb-hero__visual {
    aspect-ratio: 4 / 3;
  }

  .lokb-hero__visual figcaption {
    right: 12px;
    bottom: 18px;
    left: 12px;
    width: max-content;
    max-width: calc(100% - 24px);
  }

  .lokb-hero__color {
    height: 7px;
  }

  .section-heading,
  .idea__header,
  .identity__header,
  .digital__header,
  .implementation__header,
  .concepts__header,
  .context__grid {
    display: block;
  }

  .section-heading .eyebrow,
  .idea__header .eyebrow,
  .identity__header .eyebrow,
  .digital__header .eyebrow,
  .implementation__header .eyebrow,
  .concepts__header .eyebrow {
    margin-bottom: 26px;
  }

  .section-heading--with-copy > p:last-child,
  .idea__header > p:last-child,
  .identity__header > p:last-child,
  .digital__header > p:last-child,
  .implementation__header > p:last-child,
  .concepts__header > p:last-child {
    max-width: 520px;
    margin-top: 26px;
    font-size: 15px;
  }

  .context .section-heading,
  .idea__header,
  .mark .section-heading,
  .identity__header,
  .digital__header,
  .implementation__header,
  .concepts__header {
    margin-bottom: 62px;
  }

  .context__lead {
    margin-bottom: 36px;
    font-size: 35px;
  }

  .context__copy {
    font-size: 15px;
  }

  .context__image,
  .mark__story,
  .identity__palette,
  .identity-slider,
  .digital__grid {
    margin-top: 60px !important;
  }

  .idea__stage > figure {
    padding: 10px;
  }

  .idea__quotes {
    grid-template-columns: 1fr;
  }

  .idea__quotes blockquote {
    min-height: 230px;
    padding: 24px 18px;
  }

  .idea__quotes p {
    font-size: 49px;
  }

  .mark__logo {
    min-height: 430px;
  }

  .mark__logo img {
    width: 64vw;
  }

  .mark__logo > span {
    font-size: 28vw;
  }

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

  .palette span {
    min-height: 104px;
  }

  .identity-slider__viewport {
    aspect-ratio: 1.05;
  }

  .digital__concept {
    padding: 10px;
  }

  .digital__grid,
  .implementation__grid,
  .concepts__grid {
    grid-template-columns: 1fr;
  }

  .implementation__wide,
  .concepts__wide {
    grid-column: auto;
  }

  .result__grid,
  .credits__grid,
  .related__grid {
    gap: 54px;
  }

  .result__grid > div {
    font-size: 19px;
  }

  .result h2 {
    font-size: clamp(40px, 11.5vw, 50px);
  }

  .credits__list article {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related h2 {
    margin-block: 26px;
  }

  .related__grid > a {
    min-height: 340px;
  }

  .related__grid > a img {
    width: 72%;
  }

  .case-contact .gradient-text {
    --text-gradient: linear-gradient(110deg, var(--lokb-mint) 0%, var(--lokb-blue) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .identity-slider__viewport figure,
  .identity-slider__controls button,
  .related__grid > a img {
    transition: none !important;
  }
}
