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

:root {
  --gold: #C9A84C;
  --black: #1A1A1A;
  --cream: #F5F0E8;
  --sand: #D4B483;
  --charcoal: #4A4A4A;
  --pale-gold: #F2E8CE;
}

html, body {
  min-height: 100%;
  background-color: var(--cream);
  color: var(--black);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.split-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.left-panel::-webkit-scrollbar {
  display: none;
}

.right-panel {
  display: none;
}

.container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 48px 40px 40px;
}

/* Top divider line */
.top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  z-index: 2;
}

@keyframes lineIn {
  to { transform: scaleX(1); }
}

/* Main content */
.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.logo {
  max-width: clamp(150px, 40vw, 300px);
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  margin-bottom: 24px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
  margin-bottom: 24px;
}

.tagline {
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
  margin-bottom: 48px;
}

.description {
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.8;
  max-width: 360px;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
  margin-bottom: 48px;
}

.contact-block {
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}

.contact-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
  color: var(--gold);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.footer-left {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-right {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--sand);
  text-align: right;
}

.footer-right a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: var(--gold);
}

/* Corner accent */
.corner-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  opacity: 0;
  animation: fadeIn 1.5s ease 2s forwards;
  pointer-events: none;
  z-index: 2;
}

.corner-accent svg {
  width: 100%;
  height: 100%;
}

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

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

/* Responsive adjustments */
@media (min-width: 1024px) {
  html, body {
    overflow: hidden;
    height: 100vh;
  }
  .split-layout {
    flex-direction: row;
    height: 100vh;
  }
  .left-panel {
    flex: 0 0 50%;
    max-width: 700px;
    overflow-y: auto;
  }
  .right-panel {
    flex: 1;
    display: block;
    position: relative;
    background-color: var(--pale-gold);
    overflow: hidden;
  }
  .image-showcase {
    position: absolute;
    inset: 0;
    background-image: url('assets/MOCK%20(1).jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
  }
  .mockup-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards;
    z-index: 10;
  }
  .logo {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-right {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 24px 24px;
  }
  .description {
    max-width: 100%;
  }
}
