/* ============================================================
   ACE Capital Ventures — one-pager
   Palette: Burgundy #7B1E2B · Onyx #1A1A1A · Ivory #F5F1EA
            Brass #B08D57 · Off-white #EDE6D9
   Type:    Fraunces (display) · Inter (body)
   ============================================================ */

:root {
  --burgundy: #7B1E2B;
  --burgundy-deep: #5A141F;
  --onyx: #1A1A1A;
  --onyx-soft: #242424;
  --ivory: #F5F1EA;
  --cream: #EDE6D9;
  --brass: #B08D57;
  --brass-soft: #C9A978;
  --text: #2B2321;
  --text-soft: #6B6460;
  --text-light: rgba(237, 230, 217, 0.82);
  --rule: rgba(176, 141, 87, 0.35);
  --rule-light: rgba(26, 26, 26, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(245, 241, 234, 0);
  backdrop-filter: blur(0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--rule-light);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand img {
  height: 38px;
  width: auto;
  transition: height 0.3s ease, filter 0.4s ease;
  filter: brightness(0) invert(1);
}
.nav.is-scrolled .nav__brand img {
  filter: none;
  height: 34px;
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.25s ease;
  position: relative;
}
.nav.is-scrolled .nav__links a { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: var(--brass-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--burgundy); }
.nav__links a:hover::after { background: var(--brass); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--cream);
  transition: all 0.3s ease;
}
.nav.is-scrolled .nav__toggle span { background: var(--text); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(123, 30, 43, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(176, 141, 87, 0.12) 0%, transparent 55%),
    linear-gradient(140deg, #161616 0%, #0f0b0c 60%, #1c0e11 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 140px 32px 120px;
  max-width: 1100px;
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}
.hero__eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--brass);
}
.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 0.25s forwards;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--brass-soft);
}
.hero__lead {
  max-width: 620px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--brass);
  color: var(--brass-soft);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease 0.55s forwards;
}
.hero__cta:hover {
  background: var(--brass);
  color: var(--onyx);
  transform: translateY(-2px);
}
.hero__cta svg { transition: transform 0.3s ease; }
.hero__cta:hover svg { transform: translateY(3px); }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: rgba(237, 230, 217, 0.2);
  overflow: hidden;
}
.hero__scroll span {
  display: block;
  width: 100%; height: 30%;
  background: var(--brass);
  animation: scrollIndicator 2.4s ease-in-out infinite;
}
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(333%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- SECTION SHARED ---------------- */
.section {
  padding: 140px 0;
  position: relative;
}
.section--cream { background: var(--cream); }

.section__head {
  max-width: 780px;
  margin: 0 0 80px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--brass-soft); }

.section__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--onyx);
}

/* ---------------- ABOUT ---------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.pillar {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.pillar__num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--brass);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pillar h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--onyx);
  margin-bottom: 8px;
}
.pillar p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ---------------- PHILOSOPHY ---------------- */
.philosophy {
  position: relative;
  padding: 160px 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(123, 30, 43, 0.4) 0%, transparent 55%),
    linear-gradient(160deg, #1c0e11 0%, #0f0b0c 100%);
  color: var(--cream);
  overflow: hidden;
}
.philosophy__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.philosophy__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.philosophy__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 8px 0 48px;
}
.philosophy__title em {
  font-style: italic;
  color: var(--brass-soft);
}
.philosophy__body {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 720px;
}

/* ---------------- PORTFOLIO ---------------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.portfolio__item {
  aspect-ratio: 5 / 3;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: transparent;
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.portfolio__item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(123, 30, 43, 0.04), rgba(176, 141, 87, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio__item:hover::before { opacity: 1; }
.portfolio__item img {
  max-width: 72%;
  max-height: 72%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.7) opacity(0.65);
  transition: filter 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.portfolio__item:hover img {
  filter: grayscale(0%) contrast(1) opacity(1);
  transform: scale(1.04);
}

/* ---------------- NEWS ---------------- */
.news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news__card {
  background: #fff;
  padding: 36px 32px;
  border: 1px solid var(--rule-light);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
  position: relative;
}
.news__card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.news__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 26, 26, 0.08);
  border-color: transparent;
}
.news__card:hover::after { transform: scaleX(1); }
.news__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.news__company {
  color: var(--burgundy);
  font-weight: 600;
}
.news__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  color: var(--onyx);
  letter-spacing: -0.005em;
  flex: 1;
}
.news__card a {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}
.news__card a:hover { gap: 14px; }
.news__loading, .news__error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ---------------- CONTACT ---------------- */
.contact {
  position: relative;
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123, 30, 43, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #1a0c0f 0%, #0a0708 100%);
  color: var(--cream);
  overflow: hidden;
  text-align: center;
}
.contact__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact__inner {
  position: relative;
  z-index: 2;
}
.contact__inner .eyebrow { justify-content: center; }
.contact__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 16px 0 40px;
}
.contact__email {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  color: var(--brass-soft);
  border-bottom: 1px solid rgba(176, 141, 87, 0.4);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact__email:hover {
  color: var(--ivory);
  border-color: var(--brass);
}
.contact__social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 48px 0 64px;
}
.contact__social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(176, 141, 87, 0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-soft);
  transition: all 0.3s ease;
}
.contact__social a:hover {
  background: var(--brass);
  color: var(--onyx);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.contact__copy {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 230, 217, 0.4);
  padding-top: 40px;
  border-top: 1px solid rgba(237, 230, 217, 0.08);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------------- REVEAL ANIMATIONS ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 100px 0; }
  .philosophy, .contact { padding: 120px 0; }
  .hero__inner { padding: 120px 24px 100px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr 1fr; }
  .section__head { margin-bottom: 56px; }
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 360px;
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { color: var(--text); font-size: 16px; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .portfolio { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr; }
  .hero__title, .philosophy__title { font-size: clamp(36px, 10vw, 52px); }
}
