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

/* Intro Animation */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fbfbfd;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

.intro-overlay.fade-out {
  opacity: 0;
}

.intro-content {
  text-align: center;
  position: relative;
}

.intro-initials-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stars-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin 3s linear infinite;
}

.star {
  position: absolute;
  font-size: 24px;
  color: #1d1d1f;
  opacity: 0;
  filter: blur(2px);
  animation: starAppear 0.6s ease-out forwards, starGlow 2s ease-in-out infinite;
}

.star-1 { top: 10%; left: 50%; animation-delay: 0.1s; }
.star-2 { top: 50%; right: 10%; animation-delay: 0.2s; }
.star-3 { bottom: 10%; left: 50%; animation-delay: 0.3s; }
.star-4 { top: 50%; left: 10%; animation-delay: 0.4s; }
.star-5 { top: 20%; right: 25%; animation-delay: 0.5s; }
.star-6 { bottom: 20%; right: 25%; animation-delay: 0.6s; }
.star-7 { bottom: 20%; left: 25%; animation-delay: 0.7s; }
.star-8 { top: 20%; left: 25%; animation-delay: 0.8s; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes starAppear {
  from {
    opacity: 0;
    transform: scale(0);
    filter: blur(4px);
  }
  to {
    opacity: 0.8;
    transform: scale(1);
    filter: blur(2px);
  }
}

@keyframes starGlow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(2px);
  }
  50% {
    opacity: 1;
    filter: blur(1px);
  }
}

.intro-initials {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.intro-letter {
  font-size: 72px;
  font-weight: 300;
  color: #1d1d1f;
  letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.intro-letter.reveal {
  opacity: 1;
}

body:not(.site-visible) .container {
  opacity: 0;
}

body.site-visible .container {
  opacity: 1;
  transition: opacity 0.6s ease-in 0.3s;
}

/* Base Styles - SF Pro Font Stack */
html {
  scroll-behavior: smooth;
  overflow: auto;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fbfbfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow: auto;
  position: relative;
}

/* Premium Apple-style background with depth layers */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Blueprint background layer */
.blueprint-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  display: block;
}

.blueprint-background picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.blueprint-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to bottom, 
    #fbfbfd 0%, 
    #fbfbfd 40%,
    rgba(251, 251, 253, 0.90) 55%,
    rgba(251, 251, 253, 0.75) 70%,
    rgba(251, 251, 253, 0.50) 82%,
    rgba(251, 251, 253, 0.25) 90%,
    rgba(251, 251, 253, 0.10) 95%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.blueprint-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.2;
  filter: blur(3px);
  mix-blend-mode: multiply;
  display: block;
  visibility: visible !important;
  transform: translateY(10%);
}

/* Advanced grid system - Blueprint style */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  mix-blend-mode: multiply;
}

/* Container with glassmorphism and depth */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 60px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* Header with premium styling */
.header {
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  position: relative;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 20px;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex: 1;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -0.5px;
  left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
  transform-origin: left;
}

.signature {
  font-size: 24px;
  font-weight: 300;
  color: #1d1d1f;
  letter-spacing: 8px;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity: 1;
  line-height: 1;
  transform: none;
  position: relative;
  margin-right: 32px;
  text-transform: uppercase;
  letter-spacing: 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.signature::after {
  display: none;
}

.header h1 {
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1f;
  letter-spacing: 0.5px;
  position: relative;
  text-transform: none;
  margin-bottom: 2px;
}

.location {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.3px;
  opacity: 0.7;
  font-style: italic;
}

/* Currently Section - Premium treatment */
#currently {
  flex-shrink: 0;
  margin-bottom: 18px;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: none;
}

.currently-statement {
  font-size: 14px;
  line-height: 1.8;
  color: #1d1d1f;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 100%;
  text-align: left;
}

.currently-statement::before {
  display: none;
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 1 auto;
  overflow: visible;
  justify-content: flex-start;
  position: relative;
}

@media (max-width: 768px) {
  main {
    gap: 20px;
  }
}

/* Sections */
.section {
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* About Section */
#about {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: none;
  margin-bottom: 0;
}

/* Typography - All same size */
h1, h2, h3, p, a, .intro, .currently-statement, .venture-name, .social-links a, footer {
  font-size: 14px;
}

h2 {
  font-weight: 400;
  margin-bottom: 12px;
  color: #1d1d1f;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-left: 0;
}

h2::before {
  display: none;
}

h2::after {
  display: none;
}

h3 {
  font-weight: 400;
  margin-bottom: 3px;
  color: #1d1d1f;
  display: inline;
  letter-spacing: 0.3px;
}

p {
  margin-bottom: 8px;
  color: #1d1d1f;
  line-height: 1.6;
  font-weight: 400;
}

.intro {
  line-height: 1.6;
  margin-bottom: 10px;
  color: #1d1d1f;
  font-weight: 400;
  position: relative;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

#about p:not(.intro) {
  max-width: 100%;
  font-weight: 400;
  position: relative;
  padding-left: 0;
  color: #1d1d1f;
  opacity: 0.8;
}

#about p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 0.5px solid rgba(29, 29, 31, 0.2);
  position: relative;
  display: inline-block;
}

a::before {
  content: '';
  position: absolute;
  bottom: -0.5px;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: #1d1d1f;
  opacity: 0;
}

a:hover::before {
  opacity: 1;
}

/* Venture Items with glassmorphism */
#ventures {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  position: relative;
  overflow: visible;
  box-shadow: none;
}

#ventures h2 {
  margin-bottom: 15px;
  padding-left: 0;
}

#ventures h2::before {
  display: none;
}

.ventures-line {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 0;
  position: relative;
}

.venture-name {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex: 0 1 auto;
  text-align: left;
  position: relative;
  text-decoration: none;
  color: #1d1d1f;
  opacity: 0.7;
}

.venture-name::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #1d1d1f, rgba(29, 29, 31, 0.3));
  transform-origin: left;
}

.venture-name:hover::before {
  width: 100%;
}

.venture-name:hover {
  color: #1d1d1f !important;
  opacity: 1;
}

/* Contact Section with premium styling */
/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.social-links a {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  letter-spacing: 0.3px;
  font-weight: 400;
  position: relative;
  overflow: visible;
  border-bottom: 0.5px solid rgba(29, 29, 31, 0.2);
}

.social-links a::after {
  content: ' →';
  opacity: 0;
  margin-left: 0;
}

.social-links a:hover::after {
  opacity: 1;
  margin-left: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  padding: 60px;
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 0 0.5px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.05);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px 12px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.08);
}

.modal-content h3 {
  margin-bottom: 10px;
  color: #1d1d1f;
  display: block;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.modal-content .venture-type {
  margin-bottom: 25px;
  color: #666;
  letter-spacing: 1px;
  font-weight: 400;
  display: block;
  opacity: 0.7;
}

.modal-content p {
  line-height: 1.8;
  color: #1d1d1f;
  margin-bottom: 25px;
  font-weight: 400;
  opacity: 0.9;
}

.modal-content a {
  display: inline-block;
  margin-top: 15px;
  letter-spacing: 0.3px;
  font-weight: 400;
}

/* Anonymous Message Section */
#message {
  margin-top: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  box-shadow: none;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.message-input-wrapper {
  position: relative;
}

#message-input {
  width: 100%;
  padding: 0 0 8px 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: #1d1d1f;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  resize: none;
  min-height: auto;
  max-height: 120px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 400;
  letter-spacing: 0.2px;
  overflow-y: auto;
}

#message-input::placeholder {
  color: #999;
  opacity: 0.5;
}

#message-input:focus {
  outline: none;
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 12px;
}

.char-count {
  font-size: 11px;
  color: #999;
  opacity: 0.6;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.char-count.warning {
  color: #ff9500;
  opacity: 0.8;
}

.char-count.limit {
  color: #d32f2f;
  opacity: 1;
}

.message-submit {
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1f;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(29, 29, 31, 0.2);
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.3px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.6;
}

.message-submit:hover {
  opacity: 1;
  border-bottom-color: rgba(0, 0, 0, 0.4);
}

.message-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.message-status {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  opacity: 0;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.message-status.show {
  opacity: 1;
}

.message-status.success {
  color: #1d1d1f;
  opacity: 0.7;
}

.message-status.error {
  color: #d32f2f;
  opacity: 0.8;
}

/* Footer */
footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  color: #666;
  text-align: left;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  font-weight: 400;
  position: relative;
  opacity: 0.6;
}

/* Mobile adjustments */
@media (orientation: portrait) {
  .blueprint-image {
    opacity: 0.18;
    object-position: center bottom;
    transform: translateY(8%);
    filter: blur(3px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 32px 30px;
  }
  
  .header {
    margin-bottom: 24px;
    padding-bottom: 12px;
  }
  
  .currently-statement {
    padding-left: 0;
  }
  
  .ventures-line {
    gap: 25px;
  }
  
  .venture-name {
    padding: 6px 0;
  }
  
  .modal-content {
    padding: 40px 32px;
  }
  
  #ventures {
    padding: 24px;
  }
  
  #message {
    padding: 18px;
  }
  
  .social-links {
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  
  footer {
    margin-top: 24px;
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 32px 24px 24px;
  }
  
  main {
    gap: 22px;
  }
  
  #ventures {
    padding: 20px;
  }
  
  #message {
    padding: 16px;
  }
}
