:root{
  /* OPTION 1 — Executive Calm */
  --bg: #14110E;        /* warm charcoal */
  --paper: #F6F1EA;     /* soft cream */
  --ink: #1A1511;       /* near-black brown */
  --muted: #8F877D;     /* warm gray */
  --gold: #C7A96B;      /* muted gold */

  --line: rgba(26,21,17,0.14);
  --shadow: 0 18px 44px rgba(20,17,14,0.12);
  --shadow2: 0 36px 120px rgba(20,17,14,0.14);

  --r1: 18px;
  --r2: 26px;
  --max: 1200px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:"Montserrat", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x:hidden;
}

/* subtle grid texture */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.05;
  background-image:
    linear-gradient(to right, rgba(26,21,17,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,21,17,0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 35% 15%, black 0%, transparent 72%);
}

/* container */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* NAV */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: var(--max);
  margin: 14px auto 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(246,241,234,0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20,17,14,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  gap: 12px;
  align-items:center;
  text-decoration:none;
  color: inherit;
}
.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(199,169,107,0.35);
  border: 1px solid rgba(199,169,107,0.55);
  font-weight: 900;
  color: var(--ink);
}
.brand-name{ font-weight: 900; }
.brand-tagline{
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-links{
  display:flex;
  gap: 8px;
}
.nav-links a{
  text-decoration:none;
  color: rgba(26,21,17,0.72);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-links a:hover{
  background: rgba(199,169,107,0.20);
  transform: translateY(-1px);
}

/* Chapters */
.chapter{
  padding: 76px 0;
}
.chapter-head{
  max-width: 78ch;
}
.chapter-head h2{
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}
.chapter-head p{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

/* HERO */
.hero{
  padding-top: 46px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.kicker{
  letter-spacing: 2px;
  font-size: 0.82rem;
  color: rgba(26,21,17,0.58);
  font-weight: 900;
}
.hero-title{
  margin-top: 10px;
  font-size: 3.0rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-headline{
  margin-top: 12px;
  font-size: 1.25rem;
  font-weight: 900;
  color: rgba(26,21,17,0.92);
}
.hero-sub{
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.9;
  max-width: 70ch;
}

.hero-cta{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn.primary{
  background: rgba(199,169,107,0.40);
  border: 1px solid rgba(199,169,107,0.70);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(199,169,107,0.20);
}
.btn.primary:hover{ transform: translateY(-2px); }
.btn.ghost{
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost:hover{ transform: translateY(-2px); }

/* signals */
.signal-row{
  margin-top: 22px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.signal{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 150px;
}
.signal-top{
  font-weight: 900;
}
.signal-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

/* portrait */
.hero-portrait{
  justify-self: end;
  width: min(420px, 100%);
}
.portrait-frame{
  border-radius: var(--r2);
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow2);
}
.portrait-frame img{
  width: 100%;
  height: auto;
  display:block;
  transform: scale(1.02);
}
.portrait-fallback{
  width:100%;
  min-height: 280px;
  display:grid;
  place-items:center;
  text-align:center;
  padding: 12px;
  color: rgba(26,21,17,0.60);
}
.fallback-title{ font-weight: 900; }
.fallback-sub{ margin-top: 6px; font-weight: 900; color: rgba(199,169,107,0.95); }

.portrait-caption{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.caption-title{
  font-weight: 900;
}
.caption-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

/* WORK */
.work-grid{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.work-card{
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.work-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow2);
}
.work-kicker{
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: rgba(26,21,17,0.55);
}
.work-card h3{
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 900;
}
.work-card p{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 700;
}
.work-tags{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-tags span{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(199,169,107,0.18);
  border: 1px solid rgba(199,169,107,0.45);
  font-weight: 900;
  font-size: 0.85rem;
}

/* PROJECTS: TRUE SLIDER */
.project-stage{
  margin-top: 28px;
  position: sticky;
  top: 86px;

  height: min(82vh, 760px);
  overflow: hidden;

  border-radius: 34px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(26,21,17,0.10);
  box-shadow: var(--shadow2);
}

.project-rail{
  height: 100%;
  display: flex;
  flex-direction: row;
  transform: translate3d(0,0,0); /* ALWAYS show first */
  will-change: transform;
  transition: transform 780ms cubic-bezier(.18,.92,.22,1);
}

.project-panel{
  min-width: 100%;
  height: 100%;
  padding: 18px;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.project-media{
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(26,21,17,0.10);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 22px 70px rgba(20,17,14,0.12);
  height: min(520px, 60vh);
}
.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.04);
}

.project-copy{
  padding: 6px 10px;
}
.project-meta{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-pill{
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(199,169,107,0.18);
  border: 1px solid rgba(199,169,107,0.45);
  font-weight: 900;
  font-size: 0.82rem;
}
.project-title{
  margin-top: 12px;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.project-desc{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
  max-width: 62ch;
}
.project-points{
  margin-top: 14px;
  padding-left: 18px;
  color: rgba(26,21,17,0.84);
  font-weight: 700;
  line-height: 1.9;
}
.project-points li{ margin-bottom: 6px; }

.project-link{
  margin-top: 16px;
  display:inline-flex;
  width: fit-content;
  text-decoration:none;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(199,169,107,0.40);
  border: 1px solid rgba(199,169,107,0.70);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(199,169,107,0.18);
  transition: transform 180ms ease;
}
.project-link:hover{ transform: translateY(-2px); }

/* progress UI */
.project-progress{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;

  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  pointer-events:none;
}
.project-progress .bar{
  height: 10px;
  border-radius: 999px;
  overflow:hidden;
  flex: 1;
  background: rgba(26,21,17,0.10);
  border: 1px solid rgba(26,21,17,0.12);
}
.project-progress .fill{
  display:block;
  height: 100%;
  width: 20%;
  background: rgba(199,169,107,0.95);
  border-radius: 999px;
  transition: width 520ms cubic-bezier(.18,.92,.22,1);
}
.project-progress .count{
  font-weight: 900;
  color: rgba(26,21,17,0.70);
  letter-spacing: 0.6px;
  font-size: 12px;
  min-width: 72px;
  text-align: right;
}

/* runway so sticky stage works */
.project-track{
  height: 260vh;
}

/* CREDIBILITY */
.cred-grid{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cred-card{
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cred-card h3{
  font-weight: 900;
  font-size: 1.15rem;
}
.cred-card ul{
  margin-top: 12px;
  padding-left: 18px;
  color: rgba(26,21,17,0.84);
  line-height: 1.9;
  font-weight: 700;
}
.cred-card li{ margin-bottom: 6px; }

/* Experience block */
.xp-block{ margin-top: 12px; }
.xp-role{ font-weight: 900; }
.xp-company{ margin-top: 6px; font-weight: 800; color: var(--muted); }
.xp-list{
  margin-top: 10px;
  padding-left: 18px;
  color: rgba(26,21,17,0.84);
  line-height: 1.9;
  font-weight: 700;
}

/* CONTACT */
.contact-grid{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-tile{
  text-decoration:none;
  color: inherit;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.contact-tile:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow2);
}
.contact-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(199,169,107,0.22);
  border: 1px solid rgba(199,169,107,0.55);
  font-size: 1.1rem;
}
.contact-title{
  margin-top: 12px;
  font-weight: 900;
  font-size: 1.05rem;
}
.contact-sub{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

/* Footer */
.footer{
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 44px 18px;
  color: rgba(26,21,17,0.62);
  text-align:center;
  border-top: 1px solid rgba(26,21,17,0.14);
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
  will-change: opacity, transform;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-portrait{ justify-self: start; }
  .work-grid{ grid-template-columns: 1fr 1fr; }
  .project-panel{ grid-template-columns: 1fr; }
  .project-media{ height: min(360px, 42vh); }
  .contact-grid{ grid-template-columns: 1fr; }
  .cred-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-links{ display:none; }
  .hero-title{ font-size: 2.35rem; }
  .chapter{ padding: 62px 0; }
}
/* ===============================
   WATER / AIR FLOW REVEAL + FLOAT
   =============================== */

:root{
  --floatA: 8px;
  --floatB: 5px;
}

/* Base reveal now feels like “rising water” */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(.18,.92,.22,1),
    transform 900ms cubic-bezier(.18,.92,.22,1),
    filter 900ms cubic-bezier(.18,.92,.22,1);
  will-change: opacity, transform, filter;
}

/* When revealed: settle + become crisp */
.reveal.show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Gentle floating after reveal */
.reveal.floaty.show{
  animation: floaty 5.6s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0ms) + 900ms);
}

@keyframes floaty{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(calc(-1 * var(--floatA))); }
}

/* Slight variant to avoid “same-same” motion */
.reveal.floaty2.show{
  animation: floaty2 6.4s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0ms) + 900ms);
}
@keyframes floaty2{
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(calc(-1 * var(--floatB))); }
}

/* Make sure project links are always clickable (above any drag layers) */
.project-copy{ position: relative; z-index: 3; }
.project-link{ position: relative; z-index: 4; pointer-events: auto; }
.project-media{ position: relative; z-index: 1; }
.project-progress{ z-index: 5; }

/* Optional: smoother hover, less “snappy” */
.work-card, .cred-card, .contact-tile{
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.work-card:hover, .cred-card:hover, .contact-tile:hover{
  transform: translateY(-6px);
}
/* ===============================
   STRONGER AIR / WATER FLOATING
   =============================== */

/* Global float tuning */
:root{
  --float-main: 14px;
  --float-soft: 8px;
  --float-slow: 18px;
}

/* Base reveal (stronger entrance) */
.reveal{
  opacity: 0;
  transform: translateY(42px);
  filter: blur(10px);
  transition:
    opacity 1.1s cubic-bezier(.18,.92,.22,1),
    transform 1.1s cubic-bezier(.18,.92,.22,1),
    filter 1.1s cubic-bezier(.18,.92,.22,1);
  will-change: opacity, transform, filter;
}

.reveal.show{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* MAIN FLOAT (cards, project panels) */
.reveal.floaty.show{
  animation: float-main 5s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0ms) + 900ms);
}

/* SOFT FLOAT (text blocks, paragraphs) */
.reveal.floaty2.show{
  animation: float-soft 7s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0ms) + 1100ms);
}

/* SLOW FLOAT (hero image, large media) */
.hero-portrait.reveal.show,
.project-media{
  animation: float-slow 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* KEYFRAMES */
@keyframes float-main{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(calc(-1 * var(--float-main))); }
  100% { transform: translateY(0); }
}

@keyframes float-soft{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(calc(-1 * var(--float-soft))); }
  100% { transform: translateY(0); }
}

@keyframes float-slow{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(calc(-1 * var(--float-slow))); }
  100% { transform: translateY(0); }
}

/* Give floating elements more “air” */
.work-card,
.cred-card,
.contact-tile,
.project-panel{
  box-shadow:
    0 30px 90px rgba(20,17,14,0.14),
    0 12px 30px rgba(20,17,14,0.08);
}

/* Subtle hover lift (adds depth) */
.work-card:hover,
.cred-card:hover,
.contact-tile:hover{
  transform: translateY(-10px);
}
