:root {
  --black: #080808;
  --white: #f2f2f2;
  --soft-white: rgba(242, 242, 242, 0.9);
  --muted: rgba(242, 242, 242, 0.62);
  --faint: rgba(242, 242, 242, 0.42);
  --panel-border: rgba(255, 255, 255, 0.14);

  --transition-fast: 0.16s;
  --transition-normal: 0.34s;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.top-panel,
.bottom-panel {
  position: fixed;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.top-panel {
  top: 0;
  height: 72px;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--panel-border);
}

.bottom-panel {
  bottom: 0;
  height: 56px;
  justify-content: space-between;
  padding: 0 28px;
  border-top: 1px solid var(--panel-border);
}

h1 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1;
  font-weight: 800;
}

.title-byline {
  margin-left: 8px;
  font-size: 0.48em;
  font-weight: 520;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.bornan-link {
  display: block;
  line-height: 0;
}

.bornan-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: min(38vw, 220px);
  object-fit: contain;
  object-position: right center;
  opacity: 0.88;
  transition: opacity var(--transition-fast) ease;
}

.bornan-link:hover .bornan-logo {
  opacity: 1;
}

.suite-line,
.footer-links a {
  font-size: 13px;
  line-height: 1;
  font-weight: 520;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.photo-credits {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a {
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast) ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.app-stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.app-card {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  background: var(--black);
}

.app-card + .app-card {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.app-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 52%;
  background:
    radial-gradient(
      ellipse at bottom,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.26) 42%,
      transparent 74%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 72%);
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
  pointer-events: none;
}

.app-card:hover::before {
  opacity: 1;
}

.app-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 76px;
  z-index: 5;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.34);
  transform-origin: left;
  opacity: 0.86;
  transition:
    transform var(--transition-normal) ease,
    opacity var(--transition-normal) ease;
}

.app-card:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.app-card > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96) brightness(0.72);
  transform: scale(1.04);
  transition:
    filter var(--transition-normal) ease,
    transform var(--transition-normal) ease;
}

.app-card:hover > img {
  filter: saturate(1.18) contrast(1.04) brightness(0.88);
  transform: scale(1.07);
}

.sky-grade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(170, 23, 234, 0.2) 0%,
      rgba(170, 23, 234, 0.12) 38%,
      rgba(170, 23, 234, 0.05) 72%,
      transparent 100%
    ),
    radial-gradient(
      ellipse at top center,
      rgba(170, 23, 234, 0.1) 0%,
      transparent 72%
    );
  mix-blend-mode: screen;
  opacity: 0.8;
  transition: opacity var(--transition-normal) ease;
}

.app-card--altea:hover .sky-grade {
  opacity: 0.92;
}

.app-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.96),
      rgba(0, 0, 0, 0.24) 36%,
      transparent 68%
    ),
    linear-gradient(to right, rgba(0, 0, 0, 0.24), transparent 64%);
  transition: opacity var(--transition-normal) ease;
}

.app-card--altea .app-shade {
  z-index: 3;
}

.app-card:hover .app-shade {
  opacity: 0.62;
}

.app-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 96px;
  z-index: 6;
  display: block;
}

.app-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.app-name {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(46px, 5.2vw, 84px);
  line-height: 0.9;
  font-weight: 720;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.app-full-name {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  font-size: clamp(11px, 0.82vw, 13px);
  line-height: 1.35;
  font-weight: 1000;
  letter-spacing: 0.084em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.app-description {
  display: block;
  width: min(92%, 560px);
  font-size: clamp(15px, 1.16vw, 18px);
  line-height: 1.48;
  font-weight: 440;
  letter-spacing: -0.012em;
  color: var(--soft-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
  text-wrap: pretty;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .app-stage {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 34vh;
  }

  .app-card + .app-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-panel,
  .bottom-panel {
    padding-inline: 18px;
  }

  .bornan-logo {
    height: 24px;
    max-width: 42vw;
  }

  .footer-links {
    gap: 14px;
  }

  .photo-credits {
    display: block;
    margin-top: 4px;
    font-size: 9px;
  }

  .app-copy {
    left: 20px;
    right: 20px;
  }

  .app-description {
    width: min(92%, 440px);
  }

  .app-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }
}
