/* Amalgative Reference Site Alignment CSS */

:root {
  /* Default: Dark Theme */
  --bg-color: #000000;
  --text-color: #ffffff;
  --text-muted: #808080;
  --border-color: #1c1c1c;
  --red: #ff3333;
}

/* Light Theme overrides via .white class matching reference site */
html.white {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-muted: #666666;
  --border-color: #e6e6e6;
}

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

/* Helper Classes for Responsive Display */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out;
  overflow-x: hidden;
  padding: 0 25px;
}

@media (max-width: 860px) {
  body {
    padding: 0 20px;
  }
}

@media (min-width: 861px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
}

/* Base Headings */
h1, h2, h3 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Split Pane Grid Layout */
.page_main__WunS6 {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Left Pane (Logo, Info, Locations) */
.page_iz__I2fEm {
  width: 50%;
  height: calc(100vh - 50px);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 25px;
}

.page_iz__I2fEm h1 {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-color);
}

.page_tagline p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* Blinking dot matching reference */
.page_dot__pwfYv {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--red);
  margin-right: 10px;
  animation: page_blink__hM5K3 0.6s ease-in-out infinite forwards;
}

@keyframes page_blink__hM5K3 {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* Right Pane (Top Nav, About, Work) */
.page_de__eP04q {
  width: 50%;
  height: 100vh;
  padding-top: 0;
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Scrollable Content Container inside Right Pane */
.page_content {
  flex: 1;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  margin-top: 30px;
}

.page_content::-webkit-scrollbar {
  width: 0; /* Chrome/Safari */
}

/* Right Column Top Navigation Bar */
.page_de__eP04q .page_top__nLjCI {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  padding-top: 65px; /* Vertically align Contact text and toggle with logo */
  padding-bottom: 20px;
  z-index: 1001;
  transition: background-color 0.35s ease-in-out;
}

.page_contact__5v1kr {
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-color);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

.page_contact__5v1kr:hover {
  opacity: 0.8;
}

/* Theme Switcher Button exactly from reference spec */
.theme_button__kOagB {
  position: relative;
  width: 50px;
  height: 20px;
  background-color: #303030;
  border-radius: 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s ease-in-out;
  outline: none;
}

.theme_ball__AhjOj {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
  top: 4px;
  right: 6px;
  transition: all 0.35s ease-in-out;
}

html.white .theme_button__kOagB {
  background-color: transparent;
  border-color: #303030;
}

html.white .theme_ball__AhjOj {
  right: 34px;
  background-color: #303030;
}

/* About Section list formatting */
.page_about__gX8HI {
  margin-bottom: 80px;
}

.page_about__gX8HI h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.page_about__gX8HI ul {
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.page_item__l0zWQ {
  display: flex;
  margin-bottom: 50px;
  font-size: 13px;
  line-height: 1.75;
}

.page_item__l0zWQ:last-child {
  margin-bottom: 0;
}

.page_item__l0zWQ span {
  display: block;
  width: 80px;
  min-width: 60px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 10px;
}

.page_item__l0zWQ p {
  margin: 0;
  width: fit-content;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.page_item__l0zWQ p strong {
  font-weight: 700;
}

/* Work (Press) Section 2-Column list */
.page_press__0Xh_M {
  margin-bottom: 80px;
}

.page_press__0Xh_M h2 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.page_press__0Xh_M ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 24px;
}

.page_press__0Xh_M ul li {
  break-inside: avoid;
}

.page_press__0Xh_M ul li a {
  display: flex;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  align-items: baseline;
}

.page_press__0Xh_M ul li a:hover h3 {
  text-decoration: underline;
}

.page_press__0Xh_M ul li a .page_date__by0Ng {
  display: block;
  margin-right: 10px;
  max-width: 100px;
  min-width: 60px;
  color: var(--text-muted);
  font-weight: 500;
}

.page_press__0Xh_M ul li a h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Global Site Footer Styles */
footer.site-footer {
  position: fixed;
  bottom: 25px; /* 1/4" bottom margin */
  left: max(25px, calc((100vw - 1200px) / 2)); /* Stay left-aligned with logo area under all screen widths */
  padding: 0;
  z-index: 10;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

footer.site-footer span {
  font-weight: 700;
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer ul li {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 3.4px;
}

footer.site-footer ul li:last-child {
  margin-bottom: 0;
}

/* Scroll Entry Reveal Animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .entry-effect {
      opacity: 1;
      transform: translateY(0);
      transition: none;
      animation: reveal-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

/* Fallback transitions when not supported natively */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .entry-effect {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .entry-effect.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Overrides (under 860px width matches reference) */
@media (max-width: 860px) {
  .page_main__WunS6 {
    flex-direction: column;
  }
  
  .page_iz__I2fEm {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding-top: 25px;
    position: static;
  }
  
  .page_iz__I2fEm h1 {
    font-size: 48px;
  }
  
  .page_de__eP04q {
    width: 100%;
    height: auto;
    overflow: visible;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 0;
  }
  
  .page_content {
    overflow-y: visible;
    height: auto;
    margin-top: 0;
  }
  
  /* Mobile fixed bottom navigation panel matching inspiration */
  .page_de__eP04q .page_top__nLjCI {
    position: fixed;
    width: 100%;
    height: 70px;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    padding: 15px 25px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.35s ease-in-out, border-color 0.35s ease-in-out;
  }
  
  html.white .page_top__nLjCI {
    background-color: #ffffff;
  }
  
  .theme_button__kOagB {
    position: relative;
    right: 0;
    top: auto;
  }
  
  .page_contact__5v1kr {
    padding-top: 0;
  }
  
  .page_press__0Xh_M {
    margin-bottom: 80px;
  }

  .page_press__0Xh_M ul {
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-top-info {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .mobile-locations {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
  }

  .mobile-locations li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    margin-bottom: 3.4px;
    text-transform: uppercase;
  }

  .mobile-locations li:last-child {
    margin-bottom: 0;
  }

  .mobile-locations li .page_dot__pwfYv {
    margin-right: 0;
    margin-left: 10px;
  }

  footer.site-footer {
    position: static;
    padding: 0 0 95px 0;
    width: 100%;
    pointer-events: auto;
  }
}
