/* ============================================
   LUXURY LINKEDIN PROFILE — Rolex-inspired
   Pure elegance. For the greatest.
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --charcoal: #1a1a1a;
  --gold: #c9a962;
  --gold-light: #e5d4a1;
  --gold-dark: #9a7b3a;
  --white: #f5f5f0;
  --cream: #e8e6e0;
  --gray: #6b6b6b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  overflow-x: hidden;
}

/* Subtle noise overlay for texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

/* ========== HEADER & NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
  border-bottom: 1px solid rgba(201, 169, 98, 0.35);
  transition: background 0.5s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gold);
}

.header.header-hidden {
  transform: translateY(-100%);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.nav-logo {
  background: transparent;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(1.05);
  display: block;
  background: transparent;
  mix-blend-mode: normal;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--gold);
}

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

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

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--black-soft);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    border-left: 1px solid rgba(201, 169, 98, 0.15);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    display: flex;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: flex;
    z-index: 101;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
body.nav-open {
  overflow: hidden;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 2.5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.5rem 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-logo-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.hero-content {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-logo {
  margin-bottom: 0;
}

.hero-logo img {
  height: clamp(140px, 26vw, 280px);
  width: auto;
  max-width: 560px;
  object-fit: contain;
  filter: brightness(1.08);
  mix-blend-mode: lighten;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
}

.hero-title.animate-reveal .line {
  animation: revealLine 1s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }
.hero-title .line:nth-child(4) { animation-delay: 0.65s; }

@keyframes revealLine {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.25rem);
  color: var(--gray);
  max-width: 32ch;
  margin-bottom: 2.5rem;
}

.hero-cta {
  margin-bottom: 0;
}

/* Hero profile photo — right side, centered with titles */
.hero-photo-wrap {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  margin: 0;
  padding: 0.5rem;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, var(--charcoal) 0%, var(--black-soft) 100%);
  border: 1px solid rgba(201, 169, 98, 0.4);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.15) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(201, 169, 98, 0.06);
  transition: box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.hero-photo-frame:hover {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.2) inset,
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(201, 169, 98, 0.1);
}

/* Chameleon Change: stacked images, crossfade between slides */
.hero-photo-chameleon {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-photo-chameleon .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: middle;
}

.hero-photo-chameleon .hero-photo.chameleon-active {
  opacity: 1;
  z-index: 1;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  vertical-align: middle;
}

.hero-photo-desc {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 98, 0.2);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    margin-bottom: 2rem;
  }
  .hero-photo-wrap {
    justify-self: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.25);
}

.btn-outline {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--cream);
  border-color: var(--gray);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ========== ANIMATIONS ========== */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s var(--ease-out-expo) forwards;
}

.animate-fade-in.delay-1 { animation-delay: 0.5s; }
.animate-fade-in.delay-2 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll-triggered */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.timeline .timeline-item.visible { transition-delay: 0s; }
.timeline .timeline-item.visible:nth-child(2) { transition-delay: 0.08s; }
.timeline .timeline-item.visible:nth-child(3) { transition-delay: 0.16s; }
.timeline .timeline-item.visible:nth-child(4) { transition-delay: 0.24s; }

.craft-grid .craft-card.visible:nth-child(1) { transition-delay: 0s; }
.craft-grid .craft-card.visible:nth-child(2) { transition-delay: 0.1s; }
.craft-grid .craft-card.visible:nth-child(3) { transition-delay: 0.2s; }
.craft-grid .craft-card.visible:nth-child(4) { transition-delay: 0.3s; }

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 0;
  border-top: 1px solid rgba(201, 169, 98, 0.08);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text {
  font-size: clamp(1rem, 1vw + 0.9rem, 1.125rem);
  color: var(--gray);
  line-height: 1.75;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== EXPERIENCE TIMELINE ========== */
.section.experience .container {
  max-width: 1600px;
}

.experience-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-header {
  width: 100%;
}

.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

.trading-carousel-wrap {
  flex-shrink: 0;
  width: 100%;
  min-width: 300px;
  max-width: 420px;
  justify-self: center;
}

.carousel-frame {
  margin: 0;
  padding: 0.5rem;
  width: 100%;
  min-height: 320px;
  background: linear-gradient(165deg, var(--charcoal) 0%, var(--black-soft) 100%);
  border: 1px solid rgba(201, 169, 98, 0.4);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.15) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(201, 169, 98, 0.06);
  transition: box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

.carousel-frame:hover {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.2) inset,
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(201, 169, 98, 0.1);
}

.carousel-frame .hero-photo-chameleon {
  min-height: 280px;
}

@media (max-width: 1000px) {
  .experience-content {
    grid-template-columns: 1fr;
  }
  .trading-carousel-wrap {
    max-width: 100%;
    justify-self: center;
  }
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent 80%);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  transition: all 0.5s var(--ease-out-expo);
}

.timeline-item:hover .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.4);
  transform: scale(1.2);
}

.timeline-marker--gold {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline-role {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.timeline-role--gold {
  color: var(--gold-light);
}

.timeline-company {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw + 0.8rem, 1.75rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ========== CRAFT CARDS ========== */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.craft-card {
  padding: 2rem 1.5rem;
  background: var(--black-soft);
  border: 1px solid rgba(201, 169, 98, 0.12);
  transition: all 0.5s var(--ease-out-expo);
}

.craft-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.craft-icon {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.craft-icon--logo {
  font-size: 0;
  line-height: 0;
}

.craft-icon--logo img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(1.1);
  mix-blend-mode: lighten;
}

.craft-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.craft-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

@media (max-width: 900px) {
  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CONTACT ========== */
.contact-tagline {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 36ch;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  text-align: center;
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  filter: brightness(1.05);
  opacity: 0.9;
  mix-blend-mode: lighten;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ========== GOLD SHIMMER (optional accent) ========== */
.hero-title .line:nth-child(1) {
  background: linear-gradient(90deg, var(--white), var(--gold-light), var(--white));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title.animate-reveal .line:nth-child(1) {
  animation: revealLine 1s var(--ease-out-expo) 0.2s forwards, shimmer 4s linear 1.2s infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line {
    transform: none;
    opacity: 1;
  }
  .animate-fade-in,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
