/* ============================================
   RDS STUDIO — Minimal & Luxe
   ============================================ */

:root {
  --bg:          #F9F8F5;
  --bg-alt:      #F2EFE9;
  --text:        #1C1A17;
  --text-muted:  #6B6560;
  --accent:      #C4A882;
  --accent-dark: #A8886A;
  --border:      #E4DDD4;
  --white:       #FFFFFF;
  --ff-serif:    'Cormorant Garamond', Georgia, serif;
  --ff-sans:     'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* TYPOGRAPHY */
.section-label {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--accent-dark);
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.85rem 2.2rem;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
}

/* ============================================
   NAV
   ============================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4vw;
  transition: background 0.4s, box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(249, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-dark);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open { display: flex; }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu a {
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-img {
  width: 100%;
  height: 100%;
}

.hero-img-1 {
  background: linear-gradient(160deg, #d8d2c8 0%, #c2bab0 100%);
}

.hero-img-2 {
  background: linear-gradient(160deg, #cec8bc 0%, #b4aba1 100%);
}

/* Dark overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 26, 23, 0.55) 0%,
    rgba(28, 26, 23, 0.3) 50%,
    rgba(28, 26, 23, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4vw;
  max-width: 660px;
  margin-left: 4vw;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.02;
  margin-bottom: 1.75rem;
  color: var(--white);
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.hero-content .btn-primary {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.hero-content .btn-primary:hover {
  background: var(--white);
  color: var(--text);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-strip {
  background: var(--text);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-inner span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   PORTFOLIO
   ============================================ */
#portfolio {
  padding: 7rem 4vw;
}

.section-header {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card.large {
  grid-column: span 2;
}

.project-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.project-card.large .project-img {
  aspect-ratio: 16/9;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 26, 23, 0.8) 0%,
    rgba(28, 26, 23, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.project-img:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-cat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-link {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.project-link:hover { color: var(--accent); }

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 7rem 4vw;
  background: var(--bg-alt);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #d0cac2 0%, #b8b0a6 60%, #a09890 100%);
  position: relative;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  z-index: -1;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 7rem 4vw;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 340px;
}

.contact-details {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.contact-item a,
.contact-item span {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent-dark); }

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input, select, textarea {
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--text);
}

textarea { resize: vertical; min-height: 120px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

input::placeholder, textarea::placeholder {
  color: #b0aba5;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Success message */
.form-success {
  display: none;
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent-dark);
  padding: 2rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text);
  padding: 4rem 4vw;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 0.75rem;
}

.footer-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
}

/* ============================================
   ANIMATIONS — fade in on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-image { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    grid-column: span 1;
  }

  .project-card.large .project-img {
    aspect-ratio: 4/3;
  }

  .project-overlay {
    opacity: 1;
    transform: none;
  }

  .form-row { grid-template-columns: 1fr; }

  .about-stats { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 480px) {
  #portfolio, #about, #contact { padding: 5rem 5vw; }

  .hero-content { margin-left: 5vw; padding: 0 5vw; }

  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
}
