/* ============================================================
   Aiden Saka — Private Client Advisor
   Warm, personal luxury. Mobile-first, fully responsive.
   ============================================================ */

:root {
  --ivory:      #FAF6EF;
  --cream:      #F1E9DC;
  --sand:       #E6DAC6;
  --ink:        #15120C;
  --espresso:   #0E0B07;
  --ink-soft:   #5B5347;
  --gold:       #BC9560;
  --gold-deep:  #8F6F3C;
  --line:       rgba(21, 18, 12, 0.12);
  --line-light: rgba(250, 246, 239, 0.22);
  --shadow:     0 30px 70px -30px rgba(21, 18, 12, 0.5);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad:  clamp(1.25rem, 5vw, 4.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow--line { display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.eyebrow--line::before, .eyebrow--line::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.45; }

.section { padding: clamp(4.5rem, 11vw, 9rem) var(--pad); }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.section__sub { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  transition: transform .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(251,248,243,.55); }
.btn--ghost:hover { background: rgba(251,248,243,.12); }
.btn--outline-light { background: transparent; color: var(--ivory); border-color: rgba(251,248,243,.5); }
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: 1.4rem 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ivory); transition: color .4s; }
.nav__monogram {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em;
}
.nav__name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.02em; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--ivory); font-size: 0.82rem; letter-spacing: 0.06em; transition: color .3s; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: currentColor; transition: width .35s ease;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { border: 1px solid currentColor; padding: 0.6rem 1.3rem; border-radius: 999px; }
.nav__cta:hover { background: var(--ivory); color: var(--ink) !important; }

/* scrolled state */
.nav.is-scrolled { background: rgba(251,248,243,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 0.85rem 0; }
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--ivory) !important; }

.nav__toggle { display: none; position: relative; z-index: 130; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ivory); transition: transform .3s ease, opacity .25s ease, background .3s ease; transform-origin: center; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
/* hamburger -> X when open (and always light over the dark panel) */
.nav__toggle[aria-expanded="true"] span { background: var(--ivory); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: var(--ivory); overflow: hidden; }
.hero__video {
  position: absolute; inset: 0;
  background: #1a1714 url("/assets/video/hero-poster.jpg") center/cover no-repeat;
}
.hero__vid {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__vid.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,.55) 0%, rgba(31,27,22,.30) 35%, rgba(31,27,22,.72) 100%);
}
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 7rem var(--pad) 0; width: 100%; }
.hero__eyebrow { font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(251,248,243,.85); margin-bottom: 1.5rem; }
.hero__title { font-size: clamp(3.4rem, 12vw, 7.5rem); font-weight: 500; }
.hero__lede { max-width: 540px; margin: 1.6rem 0 2.6rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(251,248,243,.92); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); }
.hero__scroll span { display: block; width: 1px; height: 54px; background: rgba(251,248,243,.6); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; top: -54px; left: 0; width: 100%; height: 54px; background: var(--ivory); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -54px; } 60%,100% { top: 54px; } }

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__portrait { position: relative; }
.about__portrait img { width: 100%; border-radius: 4px; box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.about__badge {
  position: absolute; bottom: 1.4rem; left: -1.2rem; background: var(--ink); color: var(--ivory);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.7rem 1.2rem; border-radius: 2px;
}
.about__copy h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.4rem; }
.about__copy p { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.about__copy strong { color: var(--ink); font-weight: 500; }
.about__stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat__num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-deep); line-height: 1; }
.stat__label { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- Services (editorial rows) ---------- */
.services { background: var(--ivory); }
.svc { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(3.5rem, 8vw, 7rem); }
.svc__row { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.svc__row:nth-child(even) .svc__media { order: 2; }
.svc__media { overflow: hidden; border-radius: 5px; box-shadow: var(--shadow); }
.svc__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.svc__row:hover .svc__media img { transform: scale(1.05); }
.svc__no { display: inline-block; font-family: var(--serif); font-size: 1.25rem; color: var(--gold); letter-spacing: 0.1em; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.svc__text h3 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.svc__text p { color: var(--ink-soft); font-size: 1.06rem; max-width: 44ch; }

/* ---------- Experience Ideas ---------- */
.ideas { background: var(--ivory); }
.ideas__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.idea { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .45s ease, box-shadow .45s ease; }
.idea:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.idea__media { aspect-ratio: 4 / 3; overflow: hidden; }
.idea__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.idea:hover .idea__media img { transform: scale(1.06); }
.idea__body { padding: 1.5rem 1.5rem 1.7rem; }
.idea__loc { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.idea__body h3 { font-size: 1.5rem; margin: 0.45rem 0 0.55rem; }
.idea__body p { color: var(--ink-soft); font-size: 0.95rem; }
.ideas__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.ideas__cta p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink); margin-bottom: 1.3rem; }

/* ---------- Statement band ---------- */
.statement { position: relative; min-height: 72vh; display: grid; place-items: center; text-align: center; color: var(--ivory); overflow: hidden; padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.statement__bg { position: absolute; inset: 0; background: var(--espresso) url("/assets/editorial/statement.jpg") center/cover no-repeat; background-attachment: fixed; }
.statement__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,7,.45), rgba(14,11,7,.6)); }
.statement__quote { position: relative; max-width: 820px; }
.statement__quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.18; }
.statement__quote cite { display: block; margin-top: 1.6rem; font-family: var(--sans); font-style: normal; font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(250,246,239,.72); }
.statement__quote cite::before { content: "— "; }

/* ---------- "View all" + inline links ---------- */
.ideas__viewall { text-align: center; margin-top: 2.6rem; }
.link-underline { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 5px; transition: color .3s ease, border-color .3s ease; }
.link-underline:hover { color: var(--gold-deep); }
.inline-link { color: var(--gold-deep); border-bottom: 1px solid var(--gold); white-space: nowrap; }

/* ---------- Instagram ---------- */
.insta { background: var(--cream); text-align: center; }
.insta__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.insta__tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; }
.insta__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.insta__tile:hover img { transform: scale(1.08); }
.insta__tile::after { content: ""; position: absolute; inset: 0; background: rgba(21,18,12,0); transition: background .35s ease; }
.insta__tile:hover::after { background: rgba(21,18,12,.42); }
.insta__ig { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--ivory); opacity: 0; transition: opacity .35s ease; }
.insta__ig svg { width: 30px; height: 30px; }
.insta__tile:hover .insta__ig { opacity: 1; }
.insta__cta { margin-top: 2.6rem; }

/* ---------- Experiences subpage ---------- */
.page-hero { background: var(--espresso); color: var(--ivory); text-align: center; padding: clamp(9rem, 18vw, 12rem) var(--pad) clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero p { color: rgba(250,246,239,.8); max-width: 620px; margin: 1rem auto 0; }
.back-link { display: inline-block; margin-top: 1.9rem; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,246,239,.75); border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .3s ease; }
.back-link:hover { color: var(--ivory); }
.allgrid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

/* ---------- Approach ---------- */
.approach { background: var(--sand); }
.approach__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem,4vw,3.5rem); }
.approach__item h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.approach__item h3::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 1rem; }
.approach__item p { color: var(--ink-soft); }

/* ---------- IBC band ---------- */
.ibc { background: var(--ink); color: var(--ivory); padding: clamp(4.5rem,10vw,8rem) var(--pad); text-align: center; }
.ibc__inner { max-width: 640px; margin: 0 auto; }
.ibc__logo { height: 54px; width: auto; margin: 0 auto 2rem; object-fit: contain; opacity: .95; }
.ibc__line { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(251,248,243,.6); }
.ibc__name { font-size: clamp(2.4rem,7vw,4rem); margin: 0.4rem 0; }
.ibc__tag { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); margin-bottom: 1.6rem; }
.ibc__copy { color: rgba(251,248,243,.78); margin-bottom: 2.2rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); text-align: center; }
.contact__inner { max-width: 680px; margin: 0 auto; }
.contact h2 { font-size: clamp(2.1rem,5.5vw,3.4rem); margin-bottom: 1.1rem; }
.contact__sub { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 2.4rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.contact__actions .btn--solid { background: var(--ink); }
.contact__note { margin-top: 1.6rem; font-size: 0.8rem; color: var(--ink-soft); opacity: .7; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--ivory); padding: 3.5rem var(--pad) 2.5rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__name { font-family: var(--serif); font-size: 1.3rem; }
.footer__role { font-size: 0.78rem; letter-spacing: 0.1em; color: rgba(251,248,243,.6); text-transform: uppercase; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(251,248,243,.3); border-radius: 50%; transition: .3s; }
.footer__social a:hover { background: var(--ivory); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { font-size: 0.78rem; color: rgba(251,248,243,.55); text-align: right; line-height: 1.7; }
.footer__legal a { color: var(--gold); }

/* ---------- Section video backgrounds ---------- */
.has-video { position: relative; isolation: isolate; }
.has-video > .sec-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.has-video > .sec-bg .sec-bg__vid { width: 100%; height: 100%; object-fit: cover; }
.has-video > .sec-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,.74), rgba(20,17,14,.62));
}
.has-video > :not(.sec-bg) { position: relative; z-index: 1; }

/* light text wherever a section now sits over video */
.has-video .section__head h2,
.has-video .section__sub { color: var(--ivory); }
.has-video .eyebrow { color: var(--gold); }
.approach.has-video { background: var(--ink); }
.approach.has-video .approach__item h3 { color: var(--ivory); }
.approach.has-video .approach__item p { color: rgba(251,248,243,.82); }
.contact.has-video h2 { color: var(--ivory); }
.contact.has-video .contact__sub { color: rgba(251,248,243,.85); }
.contact.has-video .contact__note { color: rgba(251,248,243,.6); }

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

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .approach__grid { grid-template-columns: 1fr; gap: 2rem; }
  .ideas__grid { grid-template-columns: repeat(2, 1fr); }
  .allgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); z-index: 120;
    background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.8rem; padding: 2rem 2.4rem; transform: translateX(100%); transition: transform .4s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--ivory); font-size: 1.05rem; }
  .nav__cta { border-color: rgba(251,248,243,.5); }
  .nav__toggle { display: flex; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 380px; margin: 0 auto; }
  .about__badge { left: 0.8rem; }
  .svc__row { grid-template-columns: 1fr; gap: 1.6rem; }
  .svc__row:nth-child(even) .svc__media { order: 0; }
  .statement__bg { background-attachment: scroll; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  /* Experience Ideas become a swipeable horizontal rail on phones */
  .ideas__grid {
    display: flex; grid-template-columns: none; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--pad)); padding: 0.5rem var(--pad) 1.2rem;
    scrollbar-width: none;
  }
  .ideas__grid::-webkit-scrollbar { display: none; }
  .ideas__grid .idea { flex: 0 0 82%; scroll-snap-align: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { text-align: center; }
}

@media (max-width: 480px) {
  .allgrid { grid-template-columns: 1fr; }
  .about__stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
