/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-display: 'Geist', system-ui, sans-serif;
  --color-black: #000000;
  --color-white: #FFFFFF;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-display);
  background: var(--color-white);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* Intro Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Portfolio Container */
.portfolio,
header.portfolio {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Left Panel */
.panel-left,
section.panel-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  background: var(--color-white);
  flex-shrink: 0;
  width: 50.8%;
  z-index: 2;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 69px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-black);
  flex-shrink: 0;
  animation: fadeSlideUp 0.8s ease-out both;
}

.subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-black);
  flex-shrink: 0;
  animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--color-black);
  align-self: stretch;
  align-content: end;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
  letter-spacing: -3%;
}

/* Right Panel */
.panel-right,
section.panel-right {
  width: 49.2%;
  height: 100%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-image: url('images/tour.gif');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  animation: fadeIn 1s ease-out 0.2s both;
}

/* Center Image */
.center-image {
  position: absolute;
  width: 468px;
  height: 312px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: url('images/tour.gif');
  background-size: cover;
  background-position: center;
  z-index: 3;
  animation: scaleIn 0.9s ease-out 0.5s both;
}

/* Tablet Landscape: 768px – 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
  .panel-left {
    width: 50%;
    padding: 20px;
  }

  .panel-right {
    width: 50%;
  }



  .subtitle {
    font-size: 15px;
  }


  .center-image {
    width: 380px;
    height: 253px;
  }
}

/* Tablet Portrait: 600px – 767px */
@media (max-width: 767px) and (min-width: 600px) {
  .portfolio,
  header.portfolio {
    flex-direction: column;
  }

  .panel-left,
  section.panel-left {
  width: 100%;
  height: 40%;
  padding: 24px;
  order: 1;
  z-index: 2;
}

  .panel-right,
  section.panel-right {
    width: 100%;
    height: 60%;
    order: 1;
  }

  .header-row {
}

  .logo {
    font-size: 40px;
    width: 100%;
  }

  .subtitle {
    font-size: 13px;
    white-space: nowrap;
  }

  .tagline {
    font-size: 28px;
  }

  .center-image {
  display: none;
}

  .bg-image {
  width: 100%;
  height: 100%;
}
}

/* Mobile: < 600px */
@media (max-width: 599px) {
  .portfolio,
  header.portfolio {
    flex-direction: column;
  }

  .panel-left,
  section.panel-left {
  width: fit-content;
  padding: 24px;
  order: 1;
  gap: 80px;
}

  .panel-right,
  section.panel-right {
    flex: 1;
    width: 100%;
    order: 2;
  }


  .logo {
  width: 100%;
  font-size: 64px;
}

  .subtitle {
    font-size: 13px;
    white-space: nowrap;
  }

  .tagline {
    font-size: 28px;
  }

  .center-image {
    display: none;
  }

  .bg-image {
  width: 130%;
}
}
