/* ===== Frame ================================================================ */
.landing {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--ink-night);
}

.landing__half {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  transition: flex 700ms var(--ease-soft);
}

.landing__half:hover { color: var(--color-text); }

/* the dark half keeps the landing's cream ink and Space Grotesk (per the
   design canvas) rather than the portfolio's DM Sans / pink-white */
.landing__half--ui,
.landing__half--ui:hover { color: var(--ink-cream); }

.landing__half--ui .landing__brand,
.landing__half--ui .landing__title { font-family: 'Space Grotesk', var(--font-display), sans-serif; }

.landing__half--ui .landing__rule { background: var(--landing-pad-border-dark); }

.landing__half--ui .landing__list { color: var(--ink-mist); }

@media (hover: hover) {
  .landing__half:hover { flex: 1.22; }
}

.landing__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing__half--ui .landing__veil   { background: var(--gradient-landing-dark); }
.landing__half--tech .landing__veil { background: var(--gradient-landing-light); }


/* ===== Corner labels ======================================================== */
.landing__brand {
  position: absolute;
  left: 44px;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3em;
  pointer-events: none;
}

.landing__logo {
  height: 26px;
  width: auto;
  filter: var(--logo-filter);
}

/* DESIGN MEETS TECHNOLOGY*/
.landing__tagline {
  position: absolute;
  right: 44px;
  top: 36px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  pointer-events: none;
}


/* ===== Text block =========================================================== */
.landing__content {
  position: relative;
  padding: 0 44px;
  max-width: 640px;
  pointer-events: none;
}

.landing__path {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.landing__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(58px, 7.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.landing__half--tech .landing__title { letter-spacing: -0.03em; }

.landing__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.38em;
  color: var(--color-accent-2);
  margin-top: 22px;
}

.landing__half--tech .landing__name { color: var(--brand-blue-deep); }

.landing__rule {
  width: 56px;
  height: 1px;
  background: var(--color-rule-strong);
  margin: 32px 0 20px;
}

.landing__role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.landing__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--color-text-nav);
}

.landing__enter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.landing__enter > span { color: var(--color-accent); }


/* ===== Centre pad & hint ==================================================== */
.landing__pad {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--ink-night);
  border: 1px solid var(--landing-pad-border-dark);
  pointer-events: none;
  transition: left 700ms var(--ease-soft), background 700ms var(--ease-soft), border-color 700ms ease;
}

/* the logo, painted through a mask so it can change colour */
.landing__mark {
  width: 46px;
  height: 46px;
  background: var(--ink-cream);
  -webkit-mask: url('/img/logo.png') center / contain no-repeat;
          mask: url('/img/logo.png') center / contain no-repeat;
  transition: background 700ms var(--ease-soft);
}

/* two orange corner marks outside the pad */
.landing__pad::before,
.landing__pad::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--brand-pink);
}

.landing__pad::before { left: -7px; top: -7px; border-left-width: 1.5px; border-top-width: 1.5px; }
.landing__pad::after { right: -7px; bottom: -7px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

/* hover a half → the pad slides towards the other one */
@media (hover: hover) {
  .landing:has(.landing__half--ui:hover) .landing__pad { left: 54.95%; }

  .landing:has(.landing__half--tech:hover) .landing__pad {
    left: 45.05%;
    background: var(--ink-paper);
    border-color: var(--landing-pad-border-light);
  }

  .landing:has(.landing__half--tech:hover) .landing__mark { background: var(--ink-navy); }
}

.landing__hint {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  white-space: nowrap;
  color: var(--ink-stone);
  pointer-events: none;
}


/* ===== Phones: stack the halves ============================================ */
@media (max-width: 760px) {
  .landing {
    display: grid;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 100svh;
  }

  .landing__half { padding: 72px 0 64px; }

  .landing__content { padding: 0 28px; max-width: none; }

  .landing__title { font-size: clamp(40px, 13vw, 58px); }

  .landing__enter { margin-top: 30px; }

  .landing__brand { left: 24px; top: 22px; font-size: 13px; }

  .landing__tagline { right: 24px; top: auto; bottom: 44px; font-size: 10px; }

  .landing__pad { width: 72px; height: 72px; }

  .landing__mark { width: 34px; height: 34px; }

  .landing__hint { bottom: 14px; font-size: 10px; }
}

/* the privacy-policy link, bottom right, same weight as the hint */
.landing__privacy {
  position: absolute;
  right: 44px;
  bottom: 38px;
  z-index: 3;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-stone);
}

.landing__privacy:hover { color: var(--brand-orange); }

@media (max-width: 640px) {
  .landing__privacy { right: 16px; bottom: 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing__half, .landing__pad, .landing__mark { transition: none; }
}
