*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #1f3c89;
    --white: #ffffff;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: #0a0f1e;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bg {
  position: absolute;
  inset: 0;
  background-image: url('Img/mobile.png');
  background-size: cover;
  background-position: 40% 60%;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.75) 100%),
    linear-gradient(105deg, rgba(5,10,30,0.4) 0%, rgba(5,10,30,0.1) 40%, rgba(5,10,30,0.5) 100%);
  z-index: 1;
}

/* ── 4 BRACKETS ── */
.tl-bracket,
.tr-bracket,
.bl-bracket,
.br-bracket {
  position: fixed;
  width: clamp(22px, 3vw, 38px);
  height: clamp(22px, 3vw, 38px);
  z-index: 20;
}

.tl-bracket {
  top: 1.2rem;
  left: 1.2rem;
  border-top: 2px solid rgba(255,255,255,0.35);
  border-left: 2px solid rgba(255,255,255,0.35);
}

.tr-bracket {
  top: 1.2rem;
  right: 1.2rem;
  border-top: 2px solid rgba(255,255,255,0.35);
  border-right: 2px solid rgba(255,255,255,0.35);
}

.bl-bracket {
  bottom: 1.2rem;
  left: 1.2rem;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  border-left: 2px solid rgba(255,255,255,0.35);
}

.br-bracket {
  bottom: 1.2rem;
  right: 1.2rem;
  border-bottom: 2px solid rgba(255,255,255,0.35);
  border-right: 2px solid rgba(255,255,255,0.35);
}

/* ── CONTENT ── */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.8rem) clamp(2.5rem, 5vw, 4.5rem);
  animation: fadeDown 0.8s ease both;
}

.logo img {
    height: clamp(56px, 7vw, 80px);
    width: auto;
    display: block;
  }

.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  font-size: clamp(0.6rem, 0.85vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgb(255, 255, 255);
  text-transform: uppercase;
}

.topbar-dot {
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.topbar-vline {
  width: 1px;
  height: clamp(28px, 3.5vw, 44px);
  background: rgba(255,255,255,0.2);
}

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5.5rem);
  animation: fadeUp 1s ease 0.3s both;
}

.headline-block {
  text-align: right;
}

.headline-top {
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: block;
}

.headline-mid {
  font-weight: 300;
  font-size: clamp(1.1rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.2vw, 14px);
  flex-wrap: nowrap;
}

.online-pill {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 3.2rem);
  letter-spacing: 0.02em;
  padding: 0.05em clamp(8px, 1.2vw, 16px);
  line-height: 1.15;
  white-space: nowrap;
}

.sub-rule {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: clamp(0.5rem, 1.2vw, 1rem);
}

.sub-line {
  width: clamp(20px, 3.5vw, 44px);
  height: 1px;
  background: rgba(255,255,255,0.35);
}

.sub-text {
  font-weight: 500;
  font-size: clamp(0.5rem, 0.9vw, 0.7rem);
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ── BOTTOM ── */
.bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.6rem) clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 1s ease 0.6s both;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vw, 10px);
}

.project-tag-inner {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: clamp(0.55rem, 0.85vw, 0.68rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: clamp(5px, 0.6vw, 8px) clamp(12px, 1.4vw, 18px);
  display: inline-block;
}

.ig-line {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 10px);
}

.ig-bracket {
  width: clamp(10px, 1.5vw, 18px);
  height: clamp(10px, 1.5vw, 18px);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-left: 1px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.ig-handle {
  font-weight: 400;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.bottom-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.7vw, 8px);
  align-items: flex-end;
}

.contact-label {
  font-weight: 600;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.35em;
  color: var(--white);
  text-transform: uppercase;
}

.contact-line {
  font-weight: 300;
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover { color: var(--white); }

/* ── MOBILE ── */
@media (max-width: 640px) {

    .bg { background-position: 38% 55%; }
  
    .topbar { padding: 1.5rem 2.2rem; }
    .topbar-right { display: none; }
  
    .content {
      justify-content: space-between;
    }
    .headline-top {
        font-size: clamp(2.2rem, 8vw, 3rem);
      }
      
      .headline-mid {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
      }
      
      .online-pill {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
      }
      
    .main {
      flex: 0 0 auto;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 2rem 2.2rem 1rem; 
      margin-top: 8vh;
    }
  
    .headline-block { text-align: left; }
    .headline-mid { justify-content: flex-start; flex-wrap: wrap; }
    .sub-rule { justify-content: flex-start; }
  
    .bottom {
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;
      padding: 0.5rem 2.2rem 2.2rem;
      flex: 1;
      gap: 0;
    }
  
    .bottom-left {
      flex: 0 0 auto;
      gap: 6px;
      margin-top: 4vh;
    }
  
    .project-tag-inner {
      font-size: 0.58rem;
      white-space: normal;
      max-width: 260px;
    }
  
    .bottom-right {
      text-align: left;
      align-items: flex-start;
      margin-top: auto;
      margin-bottom: 2vh;
      padding-left: 1rem;
    }
  
    .spacer-mobile { display: none; }
  }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}