@font-face {
  font-family: "Enlayer Instrument Serif";
  src: url("assets/enlayer/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Enlayer Instrument Serif";
  src: url("assets/enlayer/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Enlayer DM Sans";
  src: url("assets/enlayer/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.en-case {
  --ink: #183a33;
  --paper: #f6f3ed;
  background: var(--paper);
  color: var(--ink);
  overflow: clip;
}
.en-case figure { margin: 0; }
.en-case figure > img { width: 100%; display: block; }
.en-case figcaption { margin-top: .7rem; font-size: .85rem; }
.en-case h1, .en-case h2 { margin: 0; font-weight: 500; line-height: .96; letter-spacing: -.065em; }
.en-case h2 { font-size: clamp(2.6rem, 5.8vw, 6rem); }
.en-wrap { width: min(1300px, calc(100% - 10vw)); margin-inline: auto; }
.en-label { font-size: .72rem; line-height: 1.5; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; margin: 0; }
/* The mark stays in focus while the film excerpt plays alongside it. */
.en-hero { display: grid; grid-template-columns: 1fr 1.05fr; min-height: min(710px, 76svh); color: #f7f2e7; background: #162e28; }
.en-hero-content { position: relative; display: grid; align-content: center; justify-items: start; gap: clamp(20px, 3vw, 44px); padding: clamp(4rem, 7vw, 8rem) 5vw; }
.en-hero-content p { max-width: 33ch; margin: 0; line-height: 1.45; font-size: clamp(1.1rem, 1.9vw, 1.65rem); }
.en-back { position: absolute; top: 1.5rem; left: 5vw; font-size: .85rem; }
.en-case h1 { width: 100%; }
.en-mark { width: 100%; max-width: 640px; display: block; filter: brightness(0) invert(1); }
.en-pill { display: inline-block; border: 1px solid #f7f2e788; border-radius: 99px; padding: .7rem 1.1rem; font-size: .88rem; }
.en-pill:hover { background: #f7f2e7; color: #162e28; }
.en-hero-reel { position: relative; min-height: 100%; overflow: hidden; background: #252a26; }
.en-hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.en-reel-toggle { position: absolute; right: 1rem; bottom: 1rem; background: #162e28; color: #fff; border: 1px solid #f7f2e788; padding: .55rem .8rem; border-radius: 99px; cursor: pointer; }
.en-role h2 { max-width: 15ch; }
.en-intro { display: grid; grid-template-columns: minmax(9rem,1fr) 3fr; gap: 2rem; align-items: start; padding-block: clamp(4rem,8vw,9rem); }
.en-intro > .en-label { margin-top: .5rem; }
.en-intro p:not(.en-label) { max-width: 52ch; font-size: clamp(1rem,1.6vw,1.4rem); line-height: 1.55; margin: 1.2rem 0 0; }
.en-craft { background: #e8e5dc; padding-bottom: clamp(3rem,6vw,6rem); }
.en-details { margin-top: 2rem; border-top: 1px solid currentColor; padding-block: 1rem; }
.en-details summary { cursor: pointer; font-weight: 600; }
.en-details img { display: block; width: min(100%, 820px); margin: 1.4rem auto 0; }
.en-motion { background: #142a25; color: #f7f2e7; padding-bottom: clamp(3rem,6vw,6rem); scroll-margin-top: 80px; }
.en-player { aspect-ratio: 16 / 9; background: #101512 url('assets/enlayer/frame-two.jpg') center / cover; overflow: hidden; }
.en-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.en-text-link { display: inline-block; margin-top: 1.15rem; text-underline-offset: .25em; text-decoration: underline; }
.en-rollout { padding-bottom: clamp(3rem,8vw,8rem); }
.en-wide-mockup img { aspect-ratio: 2.1 / 1; object-fit: cover; object-position: 50% 45%; }
.en-case .en-social { margin-top: clamp(24px,4vw,54px); }
.en-automation { background: #e4e8de; }
.en-credits { padding-block: 4rem; }
.en-credits h2 { font-size: .72rem; letter-spacing: .13em; font-weight: 650; }
.en-credits dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
 .en-kv-pair { display: grid; grid-template-columns: 1fr .75fr; align-items: start; gap: clamp(1rem, 4vw, 3rem); margin-top: 3rem; }
.en-kv-pair figure:last-child { width: 90%; justify-self: end; }
.en-shot { display: grid; grid-template-columns: 1fr .55fr 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
.en-shot figure img, .en-shot-video { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: #111; }
.en-shot-note { border-top: 1px solid #f7f2e780; padding-top: .8rem; }
.en-shot-note p:last-child { line-height: 1.5; }
.en-film-heading { margin: clamp(3rem, 8vw, 7rem) 0 1.5rem; scroll-margin-top: 110px; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.en-print { display: grid; place-items: center; padding: 6% 10%; background: linear-gradient(132deg, #e8e4da, #cdc7ba); box-shadow: inset 0 -28px 50px #4b453319; }
.en-print img { display: block; width: 100%; transform: rotate(-3deg); box-shadow: 12px 18px 30px #332c294a, 2px 3px 2px #332c295e; }
@media (max-width: 680px) {
  .en-hero, .en-intro, .en-kv-pair, .en-shot, .en-credits dl { grid-template-columns: 1fr; }
  .en-hero { min-height: 0; }
  .en-hero-content { padding-block: 4rem 2rem; }
  .en-hero-reel { aspect-ratio: 4 / 3; }
  .en-intro { gap: 1rem; }
  .en-wide-mockup img { aspect-ratio: 4 / 3; }
  .en-kv-pair figure:last-child { width: 100%; }
  .en-film-heading { display: block; }
  .en-film-heading .en-label { margin-top: .8rem; }
}

/* Keep every supplied artwork at its original aspect ratio. */
.en-case :is(img, video, .en-geometry-sheet, .en-device, .en-phone) { border-radius: 0 !important; }
.en-case figure > img,
.en-wide-mockup img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.en-case .en-hero-reel video { object-fit: contain; object-position: center; }
.en-hero-reel { background: #151a17; }
.en-transition, .en-campaign, .en-viva { padding-bottom: clamp(3rem, 8vw, 8rem); }
.en-transition { background: #e6ebe3; }
.en-transition-grid, .en-campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.en-geometry-sheet {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1rem, 4vw, 4rem);
  background: #f9f7f0;
  border: 1px solid #183a3340;
}
.en-geometry-sheet > div { display: grid; gap: 1rem; grid-template-rows: auto 1fr; }
.en-geometry-sheet > div + div { border-left: 1px solid #183a3340; padding-left: clamp(1rem, 3vw, 3rem); }
.en-geometry-sheet img { display: block; width: 100%; height: clamp(110px, 20vw, 250px); object-fit: contain; }
.en-kv-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.en-kv-pair figure:last-child { width: 78%; grid-column: 1 / -1; justify-self: center; }
.en-digital {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  align-items: center;
  gap: clamp(1rem, 5vw, 5rem);
  padding: clamp(1rem, 5vw, 5rem);
  margin-top: clamp(2rem, 5vw, 5rem);
  background: #dce5db;
}
.en-device, .en-phone { background: #17241e; padding: .55rem; box-shadow: 0 18px 34px #18271f32; }
.en-phone { width: min(100%, 275px); margin-inline: auto; }
.en-device-bar { background: #263830; color: white; padding: .65rem .85rem; font-size: .8rem; }
.en-device img, .en-phone img { width: 100%; height: auto; display: block; }
.en-phone img + img { margin-top: .5rem; }
.en-viva { background: #e2e9e0; }
.en-viva-feature { width: min(100%, 930px); }
.en-viva-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 2rem); margin-top: 2.5rem; }
.en-viva-grid figure { padding: clamp(.4rem, 1.25vw, .9rem); background: #f5f7f1; }
.en-viva-grid figcaption { margin-top: .5rem; }
.en-print-flat img { transform: none; }
.en-campaign-grid { margin-top: clamp(1rem, 3vw, 3rem); }
@media (max-width: 680px) {
  .en-transition-grid, .en-digital, .en-campaign-grid, .en-kv-pair { grid-template-columns: 1fr; }
  .en-viva-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-geometry-sheet { gap: .5rem; }
  .en-geometry-sheet > div + div { padding-left: .5rem; }
  .en-geometry-sheet .en-label { font-size: .52rem; letter-spacing: .04em; }
  .en-geometry-sheet img { height: clamp(58px, 20vw, 120px); }
  .en-kv-pair figure:last-child { width: 100%; }
}

@media (min-width: 681px) {
  .en-transition-grid { grid-template-columns: .58fr 1fr; align-items: end; }
}
.en-shot figure img, .en-shot-video { object-fit: contain; }
.en-credits dt { font-weight: 650; }
.en-credits dd { margin: .4rem 0 0; }

/* The hero follows the video's native frame, with no cropped or empty bands. */
.en-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 0; }
.en-hero-content { padding: clamp(3.2rem, 5.1vw, 6rem) clamp(1.1rem, 3.5vw, 3.5rem); gap: clamp(.9rem, 1.8vw, 1.7rem); align-self: center; }
.en-hero-content p { font-size: clamp(.95rem, 1.43vw, 1.4rem); }
.en-back { left: clamp(1.1rem, 3.5vw, 3.5rem); top: 1rem; }
.en-hero-reel { min-height: 0; align-self: center; aspect-ratio: 16 / 9; }
.en-reel-toggle { padding: .35rem .65rem; font-size: .75rem; }
.en-transition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.en-geometry-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.en-geometry-sheet img { height: clamp(115px, 24vw, 290px); }
.en-case .en-master { margin: clamp(2.5rem, 6vw, 6rem) auto 0; }
.en-rollout-scenes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .56fr); align-items: end; gap: clamp(1.4rem, 3.2vw, 3.5rem); }
.en-linkedin-scene { padding: clamp(.6rem, 1.6vw, 1.75rem); background: #eceef0; }
.en-meeting-scene { background: #dfe7df; padding: clamp(.7rem, 2vw, 2.15rem); }
.en-meeting-window { color: #f5f3eb; background: #192a24; box-shadow: 0 14px 34px #14271c26; }
.en-meeting-bar { display: flex; justify-content: space-between; padding: .6rem .75rem; font-size: clamp(.55rem, 1vw, .8rem); }
.en-meeting-window img { display: block; width: 100%; height: auto; }
.en-rollout-scenes > a { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
.en-viva-scene { padding: clamp(.65rem, 2vw, 2rem); background: #f4f5f0; }
.en-viva-scene img { box-shadow: 0 16px 42px #24382e21; }
.en-viva-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 2rem); }
.en-viva-grid figure { padding: 0; background: transparent; }
.en-viva-grid figcaption { padding-bottom: .7rem; border-bottom: 1px solid #183a3336; }
@media (max-width: 840px) {
  .en-hero, .en-rollout-scenes { grid-template-columns: 1fr; }
  .en-hero-content { padding: 3.7rem 5vw 1.8rem; }
  .en-hero-content h1 { max-width: 330px; }
  .en-back { left: 5vw; }
  .en-rollout-scenes { align-items: start; }
}
@media (max-width: 680px) {
  .en-transition-grid, .en-viva-grid { grid-template-columns: 1fr; }
  .en-geometry-sheet img { height: clamp(90px, 28vw, 160px); }
}

.en-case .en-launch-feature { margin: 0 0 clamp(2rem, 5vw, 5rem); }
.en-launch-scene, .en-device-composite { position: relative; }
.en-scene-base { display: block; width: 100%; height: auto; }
.en-launch-insert {
  position: absolute;
  inset: 14.9% 16.16% 21.42% 16.16%;
  background: #f7f1e7;
}
.en-launch-insert img { display: block; width: 100%; height: 100%; object-fit: contain; }
.en-type-note {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid #183a3350;
}
.en-type-note p { margin: 0; }
.en-device-crop { aspect-ratio: 2.1; overflow: hidden; background: #d4d8c8; }
.en-device-composite { width: 112%; margin-left: -6%; margin-top: -9%; container-type: inline-size; }
.en-viva-desktop-insert, .en-viva-mobile-insert {
  position: absolute;
  overflow: hidden;
  background: #fff;
  color: #25352f;
  font: 400 1.1cqw/1.35 "Enlayer DM Sans", sans-serif;
}
.en-viva-desktop-insert { inset: 23.2% 38.46% 28.75% 14.7%; }
.en-viva-screen-bar { padding: 1cqw 1.35cqw; font-weight: 650; background: #f3f4f2; border-bottom: 1px solid #dce3dc; }
.en-viva-screen-body { display: grid; grid-template-columns: 23% 1fr; }
.en-viva-screen-nav { padding: 1.4cqw .85cqw; background: #f6f7f5; line-height: 2.4; min-height: 29cqw; font-size: .8cqw; }
.en-viva-screen-main { padding: .8cqw .9cqw; }
.en-viva-screen-main > img, .en-viva-mobile-insert > img { display: block; width: 100%; height: auto; }
.en-viva-screen-profile { display: flex; align-items: center; gap: .65cqw; margin: .6cqw 0; padding-inline: .45cqw; }
.en-viva-screen-profile img { width: 2.8cqw; }
.en-viva-screen-tabs { padding: .7cqw .45cqw; border-top: 1px solid #dce3dc; font-size: .87em; font-weight: 650; }
.en-viva-screen-tabs span { margin-left: 1cqw; font-weight: 400; }
.en-viva-mobile-insert { inset: 24.75% 13.55% 20.8% 72%; clip-path: inset(0 round 0 0 1.6cqw 1.6cqw); }
.en-viva-phone-bar { padding: 1.1cqw .75cqw .8cqw; font-size: .8em; font-weight: 650; }
@media (max-width: 680px) {
  .en-type-note { grid-template-columns: 1fr; }
  .en-device-crop { aspect-ratio: 1.65; }
  .en-device-composite { margin-top: -2%; }
}

.en-corporate, .en-team, .en-signature { padding-bottom: clamp(3rem, 8vw, 8rem); }
.en-corporate { background: #ebe7de; }
.en-team { background: #102b23; color: #f5efe4; }
.en-signature { background: #f4f0e8; }
.en-case .en-interlock { margin-top: clamp(1rem, 4vw, 3rem); }
.en-case .en-endframe { margin: 0; background: #101e19; color: #fff; }
.en-endframe figcaption { width: min(1300px, calc(100% - 10vw)); margin: 0 auto; padding: .75rem 0; }
.en-event-series, .en-academy, .en-news-study, .en-object-grid {
  display: grid;
  align-items: start;
  gap: clamp(1rem, 2.6vw, 2.5rem);
  margin-top: clamp(1.5rem, 4.3vw, 4rem);
}
.en-event-series { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.en-academy { grid-template-columns: minmax(0, 1.7fr) minmax(0, .65fr); align-items: center; }
.en-academy h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.65rem); line-height: 1; }
.en-academy p { max-width: 31ch; line-height: 1.5; }
.en-news-study { grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); align-items: center; }
.en-object-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, .65fr); align-items: center; margin-top: 0; }
@media (max-width: 680px) {
  .en-event-series, .en-academy, .en-news-study, .en-object-grid { grid-template-columns: 1fr; }
  .en-object-grid figure:last-child { width: 82%; justify-self: center; }
}

.en-campaign-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.en-campaign-detail .en-master { margin: 0; width: 100%; }
.en-campaign-detail .en-type-note { display: block; margin: 0 0 1.6rem; }
.en-campaign-detail .en-type-note p + p { margin-top: .55rem; max-width: 28ch; line-height: 1.45; }
.en-rollout-scenes { display: block; }
.en-rollout-scenes > a { margin-top: 1rem; }
.en-device-crop { aspect-ratio: auto; background: #1d2322; }
.en-device-composite { width: 100%; margin: 0; }
.en-viva-desktop-insert { inset: 17.85% 37.08% 36.29% 21.59%; }
.en-viva-mobile-insert { inset: 31.45% 18.18% 29.7% 71.72%; clip-path: inset(0 round 0 0 1.2cqw 1.2cqw); }
.en-viva-phone-bar { padding: .52cqw .48cqw; }
@media (max-width: 680px) {
  .en-campaign-detail { grid-template-columns: 1fr; }
  .en-campaign-detail .en-type-note { margin-bottom: 0; }
}

/* A shared rectangular edge for all artwork and film on this case page. */
.en-case :is(figure, img, video, .en-player, .en-hero-reel) { border-radius: 0 !important; }
.en-corporate .en-wrap:has(> .en-financial) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2.75rem);
}
.en-corporate .en-news-study { display: block; margin: 0; }
.en-viva-more { margin-top: 2rem; }
.en-viva-more > .en-viva-grid { margin-top: 1.2rem; }
.en-viva-more img { width: 100%; margin: 0; }
@media (max-width: 680px) {
  .en-corporate .en-wrap:has(> .en-financial) { grid-template-columns: 1fr; }
}
.en-intro .en-byline { font-size: .9rem; }

.en-interlock-art { position: relative; }
.en-interlock-background { width: 100%; height: auto; display: block; }
.en-interlock-wordmark {
  position: absolute;
  inset: 50% auto auto 9%;
  width: 23%;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
}

.en-case .en-academy-feature { max-width: 960px; }
.en-case .en-credits dd { line-height: 1.5; }
.en-case .en-credits a, .en-case .en-details summary { text-underline-offset: .2em; }
.en-case .en-details summary { padding-block: .45rem; }
.en-case :focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.en-hero-reel .en-reel-toggle { min-height: 44px; }
@media (max-width: 680px) {
  .en-case .en-intro { padding-block: clamp(2.8rem, 10vw, 4rem); }
  .en-case h2 { font-size: clamp(2.25rem, 9vw, 3.5rem); line-height: .99; }
  .en-case .en-credits h2 { font-size: .72rem; }
  .en-case .en-shot-note { padding-top: .65rem; }
  .en-case .en-shot-note p:last-child { margin: .45rem 0; }
  .en-case .en-film-heading { scroll-margin-top: 1rem; }
  .en-case .en-credits dl > div { border-top: 1px solid #183a3340; padding-top: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.en-case) { scroll-behavior: auto; }
}

.en-case .en-details img { height: auto; }

.en-case .en-practice-diagram img { width: 100%; height: auto; aspect-ratio: auto; }
.en-practice-diagram a { text-decoration: underline; text-underline-offset: .2em; }
.en-film-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 2vw, 1.8rem);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.en-film-frames img, .en-case .en-shot figure > img { width: 100%; height: auto; border-radius: 0 !important; }
.en-interlock-wordmark { left: 14%; width: 29%; height: auto; }
.en-corporate-banners { display: grid; grid-column: 1 / -1; gap: clamp(1rem, 3vw, 2.5rem); }
.en-corporate-banners figure:last-child { width: min(100%, 70rem); }
@media (max-width: 680px) {
  .en-film-frames { grid-template-columns: 1fr; }
}
