/* ————————————————————————————————
   Serafund — Family Office
   Quiet-luxury system: travertine, ink, terracotta, gold
———————————————————————————————— */

:root {
  --ink: #1c1712;
  --ink-soft: #4a423a;
  --taupe: #8a7d6b;
  --ivory: #faf7f1;
  --stone: #f2ecdf;
  --stone-deep: #e6dcc9;
  --line: rgba(28, 23, 18, 0.12);
  --terracotta: #c05e56;
  --gold: #ab8a52;
  --dark: #171310;
  --dark-2: #211b16;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--terracotta); color: #fff; }

/* ——— Typography helpers ——— */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  display: block;
  margin-bottom: 1.4rem;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* ——— Nav ——— */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), padding 0.45s var(--ease);
}

.nav.scrolled {
  background: rgba(250, 247, 241, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__logo img { height: 52px; width: auto; transition: filter 0.45s var(--ease); }


.nav__links {
  display: flex;
  gap: 2.6rem;
  align-items: center;
  list-style: none;
}

.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  border: 1px solid var(--ink);
  padding: 0.55rem 1.5rem !important;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--ivory) !important; }

.nav__burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s, top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav.menu-open .nav__burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  overflow: hidden;
}

.hero__media {
  position: absolute; inset: 0;
  background-image:
    url("../assets/hero-cream-wave.jpg"),
    linear-gradient(160deg, #eee5d4 0%, #f5eedf 38%, #ddccae 100%);
  background-size: cover;
  background-position: center;
}

/* real motion comes from the video; the still remains as poster/fallback */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

.hero__scrim { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(3rem, 9vh, 6.5rem);
  max-width: 1200px;
}

.hero__content .eyebrow { color: var(--terracotta); }

.hero__content h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  max-width: 16ch;
  text-wrap: balance;
}

.hero__content p {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(3rem, 9vh, 6.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: rgba(28, 23, 18, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, rgba(28,23,18,0.6), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(0.55); opacity: 0.4; }
}

/* ——— Buttons ——— */

.btn {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.95rem 2.3rem;
  border: 1px solid currentColor;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
  background: transparent;
}

.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--solid-light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--solid-light:hover { background: transparent; color: var(--ivory); }

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

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

.btn--terracotta { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--terracotta:hover { background: transparent; color: var(--terracotta); }

/* ——— Sections ——— */

section { padding: clamp(4.5rem, 11vw, 8.5rem) var(--pad); }

.container { max-width: 1240px; margin: 0 auto; }

/* Philosophy statement */

.philosophy {
  text-align: center;
  padding-top: clamp(6rem, 14vw, 10rem);
  padding-bottom: clamp(14rem, 30vw, 24rem);   /* lets the podium image breathe below the text */
  background:
    linear-gradient(to bottom, rgba(250, 247, 241, 0.92) 0%, rgba(250, 247, 241, 0.65) 45%, rgba(250, 247, 241, 0) 100%),
    url("../assets/img-podium.jpg") center bottom / cover no-repeat,
    var(--ivory);
}

.philosophy h2 {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  max-width: 28ch;
  margin: 0 auto;
  color: var(--ink);
}

.philosophy h2 em {
  font-style: italic;
  color: var(--terracotta);
}

.philosophy p {
  max-width: 62ch;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Services */

.services {
  position: relative;
  overflow: hidden;
  background:
    url("../assets/hero-silk.jpg") center / cover no-repeat,
    var(--stone);
  color: var(--ink);
}

.services__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services .container { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .services__video { display: none; }
}

.services .eyebrow { color: var(--terracotta); font-weight: 500; letter-spacing: 0.34em; }

.services__head p {
  color: var(--ink-soft);
}

.services .service p { color: rgba(250, 247, 241, 0.8); }
.services__grid,
.services .service { border-color: rgba(250, 247, 241, 0.22); }

/* translucent dark glass so copy stays readable over the video's bright areas */
.services .service {
  color: var(--ivory);
  background: rgba(23, 19, 16, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.services .service:hover { background: rgba(23, 19, 16, 0.66); }

.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}

.services__head h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }
.services__head p { max-width: 44ch; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: transparent;
  transition: background 0.45s var(--ease);
  position: relative;
}

.service:hover { background: rgba(250, 247, 241, 0.85); }

.service__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 2.6rem;
}

.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0;
}

.service p { font-size: 0.94rem; color: var(--ink-soft); }

/* Team preview */

.team {
  background:
    linear-gradient(rgba(250, 247, 241, 0.88), rgba(250, 247, 241, 0.66)),
    url("../assets/img-fabric.jpg") center / cover no-repeat,
    var(--ivory);
}

.team__head { text-align: center; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.team__head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.team__head p { color: var(--ink-soft); max-width: 52ch; margin: 1.2rem auto 0; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  max-width: 1240px;
  margin: 0 auto;
}

.member { text-align: center; }

.member__photo {
  background: linear-gradient(175deg, var(--stone) 0%, var(--stone-deep) 100%);
  border-radius: 200px 200px 0 0;   /* arch, echoing travertine architecture */
  overflow: hidden;
  aspect-ratio: 0.86;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background 0.5s var(--ease);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease);
}

.member:hover .member__photo { background: linear-gradient(175deg, var(--stone-deep) 0%, #d9cbb0 100%); }
.member:hover .member__photo img { transform: scale(1.04); }

.member h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }

.member span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* CTA */

.cta {
  background:
    linear-gradient(rgba(18, 14, 9, 0.55), rgba(18, 14, 9, 0.68)),
    url("../assets/img-corridor.jpg") center / cover no-repeat,
    var(--dark);
  color: var(--ivory);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute; inset: -40% -20%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(171, 138, 82, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta .eyebrow { color: var(--gold); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 22ch; margin: 0 auto; position: relative; }
.cta p { color: rgba(250, 247, 241, 0.72); max-width: 50ch; margin: 1.6rem auto 2.6rem; position: relative; }
.cta .btn { position: relative; }

/* Footer */

.footer {
  background: var(--dark);
  color: rgba(250, 247, 241, 0.66);
  padding: 3.5rem var(--pad) 2.5rem;
  border-top: 1px solid rgba(250, 247, 241, 0.1);
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__logo img { height: 36px; filter: brightness(0) invert(1); opacity: 0.85; }

.footer__links { display: flex; gap: 2rem; list-style: none; }
.footer__links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--ivory); }

.footer__meta {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(250, 247, 241, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

/* ——— Inner pages ——— */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(9rem, 18vh, 12rem) var(--pad) clamp(3.5rem, 7vw, 5.5rem);
  background:
    url("../assets/img-marble-waves.jpg") center / cover no-repeat,
    var(--stone);
}

.page-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero > *:not(.page-hero__video) { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .page-hero__video { display: none; }
}

/* dark variant — gold silk on black (contact) */
.page-hero--dark {
  background:
    url("../assets/hero-silk.jpg") center / cover no-repeat,
    var(--dark);
  color: var(--ivory);
}
.page-hero--dark .eyebrow { color: #d9bd8a; }
.page-hero.page-hero--dark p { color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); }

.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); max-width: 18ch; }
.page-hero p { max-width: 54ch; color: var(--ink-soft); margin-top: 1.4rem; font-size: 1.05rem; }

/* Team page bios */

.roster { background: var(--ivory); }

.roster__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 4rem);
  max-width: 1240px;
  margin: 0 auto;
}

.profile { display: grid; grid-template-columns: 200px 1fr; gap: 1.8rem; align-items: start; }

.profile .member__photo { margin-bottom: 0; }

.profile h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.profile span {
  display: block; margin: 0.4rem 0 1rem;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terracotta);
}
.profile p { font-size: 0.94rem; color: var(--ink-soft); }
.profile p + p { margin-top: 0.8em; }

/* Contact page */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 7vw, 6rem);
  max-width: 1240px;
  margin: 0 auto;
}

.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.4rem; }
.contact-info p { color: var(--ink-soft); max-width: 40ch; }

.contact-info dl { margin-top: 2.5rem; display: grid; gap: 1.6rem; }
.contact-info dt {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe);
  margin-bottom: 0.3rem;
}
.contact-info dd { font-family: var(--serif); font-size: 1.25rem; }

.form { display: grid; gap: 1.8rem; }

.form label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.form input, .form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  padding: 0.6rem 0;
  color: var(--ink);
  transition: border-color 0.3s;
  border-radius: 0;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

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

.form .btn { justify-self: start; margin-top: 0.5rem; }

.form__note { font-size: 0.8rem; color: var(--taupe); }

/* ——— Reveal animations ——— */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

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

/* ——— Responsive ——— */

@media (max-width: 960px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .roster__grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* fixed would resolve against the nav (backdrop-filter creates a containing
     block), so position the panel absolutely off the nav itself */
  .nav__links {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
    z-index: -1;
  }
  .nav.menu-open .nav__links {
    transform: none;
    visibility: visible;
    transition: transform 0.5s var(--ease);
  }
  .nav__links a { font-size: 1rem; }
  .nav__burger { display: block; }

  .services__grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile .member__photo { max-width: 260px; }
  .hero__scroll { display: none; }
}

/* autoplay blocked (e.g. iOS Low Power Mode): hide video, show the still */
.video-fallback { display: none; }

.form__success {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  border-top: 1px solid var(--terracotta);
  padding-top: 1.4rem;
}
