:root {
  --bg: #0A0D12;
  --bg-soft: #111722;
  --text: #F7F7F7;
  --muted: #AEB8C8;
  --line: rgba(95, 158, 255, 0.38);
  --line-strong: rgba(47, 107, 255, 0.65);
  --blue: #2F6BFF;
  --blue-soft: #6AA0FF;
  --panel: rgba(8, 15, 28, 0.54);
  --panel-2: rgba(15, 23, 38, 0.84);
  --border: rgba(122, 170, 255, 0.26);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  overflow: hidden;
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 80%, rgba(47, 107, 255, 0.15), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(47, 107, 255, 0.10), transparent 18%),
    linear-gradient(125deg, #070a10 0%, #0a1019 38%, #091221 58%, #070b12 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.50), transparent 20%, transparent 80%, rgba(0,0,0,0.50));
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
#ambient, .vignette, .scanlines { position: fixed; inset: 0; pointer-events: none; }
#ambient { width: 100%; height: 100%; opacity: 0.82; }
.vignette { box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.78); }
.scanlines {
  opacity: 0.08;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 4px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.stage {
  position: relative;
  min-height: 100svh;
  padding: 0 clamp(18px, 3vw, 52px);
  display: grid;
  grid-template-rows: 86px 1fr 78px;
  isolation: isolate;
}
.topbar, .bottombar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar { padding-top: 14px; }
.agency-tag {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  line-height: 1.34;
  letter-spacing: 0.30em;
  color: #DCE5F3;
}
.agency-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 12px rgba(255,255,255,0.14);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: #E1E8F1;
}
.desktop-nav i {
  width: 1px;
  height: 11px;
  display: block;
  background: rgba(255,255,255,0.42);
}

.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  perspective: 1600px;
}
.hero {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 0 12px;
  transform: translateZ(70px);
}
.logo-wrap {
  width: min(600px, 94%);
  margin: 0 auto 18px;
}
.logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.30));
}

.logo-tagline {
  margin-top: 8px;
  color: #F3F5F8;
  font-size: clamp(11px, 1.0vw, 17px);
  font-weight: 300;
  letter-spacing: 0.30em;
  white-space: nowrap;
}
.accent-line {
  height: 16px;
  display: grid;
  place-items: center;
  margin: 6px 0 2px;
}
.accent-line span {
  width: 58px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue-soft), transparent);
  box-shadow: 0 0 18px rgba(47,107,255,0.95);
  animation: pulseLine 2.8s ease-in-out infinite;
}
.eyebrow {
  margin: 12px 0 32px;
  font-size: clamp(10px, 0.82vw, 14px);
  letter-spacing: 0.58em;
  color: #E4EBF7;
}
.headline {
  margin: 0;
  font-weight: 250;
  font-size: clamp(44px, 4.35vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--text);
  text-shadow: 0 10px 34px rgba(0,0,0,0.32);
}
.headline strong {
  font-weight: 640;
  color: #66A2FF;
  text-shadow: 0 0 32px rgba(47,107,255,0.32);
}
.subline {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.25em;
  color: #E4EAF5;
}
.subline span {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #B3BED0;
}
.progress {
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,0.28);
  margin: 44px auto 0;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 100%;
  height: 55%;
  background: #fff;
  animation: progressLoop 2.3s ease-in-out infinite;
}

.side {
  position: relative;
  height: min(74vh, 720px);
  z-index: 8;
}
.side-left { transform: rotateY(11deg); transform-origin: left center; }
.side-right { transform: rotateY(-11deg); transform-origin: right center; }

.glass-card {
  position: absolute;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 34, 56, 0.44), rgba(6, 12, 22, 0.70));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.03), inset 0 0 32px rgba(47,107,255,0.06);
  backdrop-filter: blur(10px);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.09), transparent 28%, transparent 68%, rgba(47,107,255,0.12));
  pointer-events: none;
  z-index: 1;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  z-index: 2;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02) brightness(0.92);
}
.media-card.large img { object-position: center; }
.media-card.wide img { object-position: center; }
.overlay-copy,
.corner-tag {
  position: absolute;
  z-index: 3;
}
.overlay-copy {
  right: 8.5%;
  bottom: 9%;
  max-width: 46%;
  color: #E7EDF8;
  text-align: left;
}
.overlay-copy p { margin: 0; }
.overlay-copy .mini-title {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: #9FC0FF;
  font-weight: 600;
}
.overlay-copy > p:last-child {
  font-size: clamp(11px, 0.95vw, 16px);
  line-height: 1.72;
  letter-spacing: 0.16em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.46);
}
.overlay-copy.right-align { left: 8%; right: auto; }
.overlay-copy.bottom-left { left: 8%; bottom: 10%; right: auto; max-width: 56%; }
.corner-tag {
  left: 6%;
  bottom: 8%;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(7, 12, 22, 0.72);
  border: 1px solid rgba(255,255,255,0.10);
  color: #D8E4F4;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.text-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(150deg, rgba(10,15,26,0.75), rgba(6,10,17,0.88));
  color: #D5DEEA;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.22em;
}
.mini-stack {
  display: grid;
  grid-template-columns: 104px 1fr;
  background: linear-gradient(150deg, rgba(9,14,24,0.75), rgba(11,16,29,0.84));
}
.mini-stack-logo {
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #D8E2F1;
  background: linear-gradient(180deg, rgba(47,107,255,0.14), transparent);
  position: relative;
  z-index: 3;
}
.mini-stack-image { position: relative; }
.mini-stack-image::after {
  content: "Corporate";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(8,12,20,0.72);
  color: #D7E4F7;
  border: 1px solid rgba(255,255,255,0.08);
}
.mini-stack img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-a { left: -7%; top: 5%; width: 84%; height: 38%; }
.card-b { left: -2%; bottom: 4%; width: 88%; height: 37%; }
.card-c { right: 2%; top: 42%; width: 40%; min-height: 170px; }
.card-d { right: -7%; top: 7%; width: 84%; height: 39%; }
.card-e { right: -1%; bottom: 4%; width: 86%; height: 36%; }
.card-f { left: 2%; bottom: 4%; width: 38%; height: 19%; }

.glass-card, .hero { transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; }
.side-left .glass-card { animation: driftLeft 7.4s ease-in-out infinite alternate; }
.side-right .glass-card { animation: driftRight 7.8s ease-in-out infinite alternate; }
.card-b, .card-e { animation-delay: -2.5s !important; }
.card-c, .card-f { animation-delay: -4.2s !important; }

.reveal { opacity: 0; transform: translateY(18px); animation: revealUp .9s cubic-bezier(.18,.85,.23,1) forwards; }
.reveal-1 { animation-delay: .18s; }
.reveal-2 { animation-delay: .44s; }
.reveal-3 { animation-delay: .64s; }
.reveal-4 { animation-delay: .88s; }

.bottombar {
  color: #C4CDDA;
  font-size: 10px;
  letter-spacing: 0.22em;
  gap: 12px;
}
.contact, .instagram, .phone, .location {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact:hover, .instagram:hover, .phone:hover { color: #fff; transform: translateY(-1px); }
.mail-icon, .icon-box {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 6px;
  color: #EEF4FF;
  flex: 0 0 24px;
}
.mail-icon svg { width: 16px; height: 16px; fill: currentColor; }
.icon-box { font-size: 13px; }
.meta-right {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.phone-icon, .location span {
  color: var(--blue-soft);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseLine {
  0%,100% { opacity: 0.62; transform: scaleX(0.72); }
  50% { opacity: 1; transform: scaleX(1.24); }
}
@keyframes progressLoop {
  0% { transform: translateY(-110%); }
  50%,100% { transform: translateY(180%); }
}
@keyframes driftLeft {
  from { translate: 0 -7px; }
  to { translate: 11px 7px; }
}
@keyframes driftRight {
  from { translate: 0 7px; }
  to { translate: -11px -7px; }
}

@media (max-width: 1180px) {
  body { overflow: auto; }
  .stage {
    min-height: 100svh;
    grid-template-rows: 72px 1fr 94px;
    padding: 0 24px;
  }
  .desktop-nav { display: none; }
  .scene {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 166px);
  }
  .hero {
    grid-column: 1;
    padding: 42px 0 36px;
  }
  .side {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0.30;
    filter: blur(0.2px);
    pointer-events: none;
  }
  .side-left, .side-right { transform: none; }
  .card-a, .card-d { width: 42%; height: 26%; }
  .card-b, .card-e { width: 44%; height: 24%; }
  .card-c, .card-f { width: 26%; height: 18%; }
  .card-a { left: -5%; top: 2%; }
  .card-b { left: -5%; bottom: 9%; }
  .card-c { right: 10%; top: 43%; }
  .card-d { right: -5%; top: 4%; }
  .card-e { right: -5%; bottom: 10%; }
  .card-f { left: 8%; bottom: 7%; }
  .bottombar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 14px;
    padding-bottom: 14px;
  }
  .meta-right { gap: 18px; }
}

@media (max-width: 700px) {
  .stage {
    padding: 0 18px;
    grid-template-rows: 64px 1fr 132px;
  }
  .topbar { padding-top: 10px; }
  .agency-tag { gap: 12px; font-size: 8px; letter-spacing: 0.23em; }
  .agency-line { height: 38px; }
  .logo-wrap { width: 92vw; max-width: 430px; margin-bottom: 10px; }
  .eyebrow { margin: 8px 0 24px; letter-spacing: 0.44em; }
  .headline { font-size: clamp(40px, 12vw, 58px); line-height: 1.02; }
  .subline { font-size: 12px; letter-spacing: 0.17em; }
  .subline span { font-size: 10px; letter-spacing: 0.14em; }
  .progress { margin-top: 34px; height: 38px; }
  .bottombar {
    font-size: 8px;
    letter-spacing: 0.12em;
    align-content: start;
  }
  .contact, .instagram, .phone, .location { gap: 8px; }
  .mail-icon, .icon-box { width: 21px; height: 21px; font-size: 11px; }
  .mail-icon svg { width: 13px; height: 13px; }
  .meta-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .side { opacity: 0.18; }
  .card-a, .card-d { width: 48%; height: 20%; }
  .card-b, .card-e { width: 50%; height: 18%; }
  .card-c, .card-f { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* Art direction: keep the centre open and arrange the work as receding glass walls. */
.stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 22% at 52% 47%, rgba(65,139,255,.5), transparent 85%),
    linear-gradient(to bottom, transparent, rgba(23,51,91,.38) 44%, rgba(8,15,28,.8));
  border-top: 1px solid rgba(83,145,255,.18);
}
.scene { grid-template-columns: minmax(0,1fr) minmax(520px,1.55fr) minmax(0,1fr); }
.hero { padding: 0; transform: translateZ(70px); }
.logo-wrap { width: min(660px, 112%); max-width: none; margin-left: 50%; transform: translateX(-50%); margin-bottom: 4px; }
.logo { filter: drop-shadow(0 18px 36px rgba(0,0,0,.4)); }
.eyebrow { margin: 15px 0 36px; }
.headline { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: clamp(55px, 4.65vw, 88px); font-weight: 200; line-height: 1.04; letter-spacing: -.055em; white-space: nowrap; }
.headline strong { font-weight: 650; background: linear-gradient(115deg,#2f6bff,#a5bcff); background-clip: text; -webkit-text-fill-color: transparent; }
.subline { margin-top: 36px; }
.side { height: min(72vh, 700px); }
.side-left { transform: rotateY(13deg) translateX(-5%); }
.side-right { transform: rotateY(-13deg) translateX(5%); }
.glass-card { border-color: rgba(108,166,255,.38); box-shadow: 0 0 0 1px rgba(14,78,205,.14), 0 18px 38px rgba(0,0,0,.55), 0 0 22px rgba(34,105,255,.12); }
.glass-card::before { background: linear-gradient(130deg, rgba(255,255,255,.10), transparent 30%, transparent 65%, rgba(47,107,255,.18)); }
.media-card img { filter: saturate(.9) contrast(1.06) brightness(.88); }
.card-a { left: -25%; top: 4%; width: 112%; height: 38%; }
.card-b { left: -20%; bottom: 5%; width: 116%; height: 37%; }
.card-c { right: -20%; top: 32%; width: 51%; min-height: 180px; }
.card-d { right: -25%; top: 6%; width: 112%; height: 40%; }
.card-e { right: -21%; bottom: 5%; width: 116%; height: 37%; }
.card-f { left: -17%; bottom: 1%; width: 49%; height: 20%; }
.card-a img { object-position: center 48%; }
.card-b img { object-position: center 53%; }
.card-d img { object-position: center 48%; }
.card-e img { object-position: center 48%; }
.card-a .overlay-copy, .card-d .overlay-copy, .card-e .overlay-copy { top: 0; bottom: 0; right: 0; left: auto; width: 38%; max-width: none; padding: 9% 4%; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(95deg,rgba(5,12,25,.72),rgba(6,15,32,.94)); }
.card-a img, .card-d img, .card-e img { width: 68%; }
.card-d .overlay-copy, .card-e .overlay-copy { left: auto; right: 0; }
.overlay-copy > p:last-child { font-size: clamp(9px,.78vw,13px); line-height: 1.75; letter-spacing: .12em; }
.overlay-copy .mini-title { font-size: clamp(9px,.8vw,12px); }
.card-b .corner-tag { left: 5%; bottom: 8%; }
.bottombar { z-index: 30; }
.mail-icon,.icon-box { border-radius: 3px; }

@media (min-width: 1181px) and (max-height: 760px) {
  .stage { grid-template-rows: 68px 1fr 65px; }
  .side { height: 68vh; }
  .logo-wrap { width: min(570px,105%); }
  .eyebrow { margin-bottom: 22px; }
  .headline { font-size: clamp(47px,4.2vw,70px); }
  .subline { margin-top: 22px; }
  .progress { margin-top: 28px; }
}

@media (max-width: 1180px) {
  .stage { grid-template-rows: 72px minmax(650px,1fr) auto; }
  .scene { grid-template-columns: 1fr; overflow: hidden; }
  .hero { z-index: 20; max-width: 680px; margin: auto; padding: 40px 16px; }
  .logo-wrap { width: min(600px,90vw); }
  .headline { white-space: normal; font-size: clamp(50px,6vw,72px); }
  .side { opacity: .43; }
  .side-left,.side-right { transform: none; }
  .card-a,.card-b,.card-d,.card-e { width: 40%; height: 27%; }
  .card-a { left: -9%; top: 3%; }
  .card-b { left: -10%; bottom: 5%; }
  .card-d { right: -9%; top: 4%; }
  .card-e { right: -10%; bottom: 6%; }
  .card-c,.card-f { display: none; }
  .bottombar { min-height: 96px; }
}

@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .stage { min-height: 100svh; grid-template-rows: 66px minmax(590px,1fr) auto; padding: 0 17px; }
  .scene { min-height: 590px; }
  .hero { width: 100%; padding: 28px 0 38px; }
  .logo-wrap { width: min(94vw,470px); }
  .eyebrow { font-size: 9px; margin: 10px 0 26px; letter-spacing: .38em; }
  .headline { font-size: clamp(38px,10.4vw,60px); white-space: normal; line-height: 1.08; }
  .subline { margin-top: 26px; font-size: 12px; }
  .progress { margin-top: 30px; }
  .side { opacity: .22; }
  .card-a,.card-b,.card-d,.card-e { width: 60%; height: 19%; }
  .card-a { left: -24%; top: 1%; }
  .card-d { right: -24%; top: 2%; }
  .card-b { left: -26%; bottom: 3%; }
  .card-e { right: -26%; bottom: 4%; }
  .card-a .overlay-copy,.card-d .overlay-copy,.card-e .overlay-copy { display: none; }
  .card-a img,.card-d img,.card-e img { width: 100%; }
  .bottombar { min-height: 120px; padding: 10px 0 22px; gap: 10px 20px; justify-content: center; }
  .contact { flex-basis: 100%; justify-content: center; }
  .meta-right { gap: 10px 20px; }
}

/* Keep the logo centred after the entrance animation finishes. */
.logo-wrap { margin-left: auto; margin-right: auto; transform: none; width: min(660px,112%); position: relative; left: 50%; translate: -50% 0; }
@media (max-width:1180px) { .logo-wrap { width: min(600px,90vw); } }
@media (max-width:700px) { .logo-wrap { width: min(94vw,470px); } }

/* Keep portfolio captions within the viewport at laptop widths. */
body { overflow-x: hidden; }
@media (min-width:1181px) {
  .card-a { left: 0; width: 100%; }
  .card-b { left: 0; width: 100%; }
  .card-c { right: 0; width: 42%; }
  .card-d { right: 0; width: 100%; }
  .card-e { right: 0; width: 100%; }
  .card-f { left: 0; width: 40%; }
  .card-a .overlay-copy,.card-d .overlay-copy,.card-e .overlay-copy { width: 42%; }
}

/* More depth in the glass portfolio walls, as in the approved composition. */
@media (min-width: 1181px) {
  .scene { perspective: 1250px; }
  .side { transform-style: preserve-3d; }
  .side-left { transform: translateX(-8%) rotateY(23deg) scale(.95); transform-origin: left center; }
  .side-right { transform: translateX(8%) rotateY(-23deg) scale(.95); transform-origin: right center; }
  .side-left .glass-card, .side-right .glass-card { backface-visibility: hidden; }
  .card-a, .card-d { filter: drop-shadow(0 0 10px rgba(47,107,255,.12)); }
}
