/* ============================================
   JYE Capital Group — v3 Premium
   Inspired by Sequoia / Bain Capital design language
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Sora:wght@300;400;500;600&display=swap');

/* --- Tokens --- */
:root {
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Sora', system-ui, sans-serif;

  --cream: #F5F1E9;
  --cream-dark: #EDE8DD;
  --ink: #1B1917;
  --ink-light: #3D3A36;
  --stone: #8A847B;
  --warm-border: #D9D3C9;
  --accent: #B5894F;
  --white: #FFFFFF;
  --hero-bg: #2A2621;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Header
   ============================================ */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0 3.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

header.scrolled {
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--warm-border);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

header.scrolled .logo {
  color: var(--ink);
}

nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

header.scrolled .nav-link {
  color: var(--stone);
}

header.scrolled .nav-link:hover {
  color: var(--ink);
}

/* ============================================
   Hero — Split Composition
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--hero-bg);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 5rem 6rem 3.5rem;
}

.hero-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: sepia(0.15) saturate(0.85) brightness(0.9);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      var(--hero-bg) 0%,
      rgba(42, 38, 33, 0.3) 25%,
      transparent 100%);
}

/* ============================================
   About strip
   ============================================ */
.about {
  padding: 6rem 3.5rem;
  border-bottom: 1px solid var(--warm-border);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 0.35rem;
}

.about-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-light);
}

/* ============================================
   Divider image
   ============================================ */
.divider-image {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
}

.divider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: sepia(0.10) saturate(0.9) brightness(0.92);
}

.divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      var(--cream) 0%,
      transparent 8%,
      transparent 92%,
      var(--cream) 100%);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 7rem 3.5rem;
}

.contact-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: start;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.contact-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.contact-left p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.7;
  max-width: 320px;
}

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--warm-border);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--warm-border);
  padding: 0.75rem 0.85rem;
  margin-top: 0.25rem;
}

.field textarea:focus {
  border-color: var(--accent);
}

.btn {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.8rem;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
  align-self: flex-start;
  margin-top: 0.5rem;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 3rem 3.5rem;
  border-top: 1px solid var(--warm-border);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

footer p {
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 300;
}

/* ============================================
   Scroll animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal.d1 {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  header {
    padding: 0 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 8rem 1.5rem 3rem;
    order: 1;
  }

  .hero-image {
    height: 50vh;
    min-height: 280px;
    order: 2;
  }

  .hero-image-overlay {
    background: linear-gradient(to bottom,
        var(--hero-bg) 0%,
        rgba(42, 38, 33, 0.2) 20%,
        transparent 100%);
  }

  .about {
    padding: 4rem 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact {
    padding: 4rem 1.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  footer {
    padding: 2rem 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}