/* ==========================================================================
   YAZID BIN ABD RAHIM — portfolio
   Design language: an agile coach's homepage, as a working sprint board.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* -- color tokens ------------------------------------------------------ */
  --bg:        #0F1319;
  --panel:     #171D25;
  --raised:    #1E2630;
  --raised-2:  #262F3B;
  --line:      #2B3440;
  --line-soft: #202832;

  --ink:       #ECEFF3;
  --ink-dim:   #99A3B3;
  --ink-faint: #626D7D;

  --todo:      #FF8F63;
  --todo-ink:  #3A1B0E;
  --progress:  #FFD166;
  --progress-ink: #3A2C05;
  --done:      #6FCF97;
  --done-ink:  #0E3320;
  --link:      #63B4F2;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 24px rgba(0,0,0,0.35);
  --shadow-pop:  0 20px 40px rgba(0,0,0,0.45);

  --display: 'Space Grotesk', 'Inter', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* full-viewport ambient background — three soft blobs that drift on their
   own and shift depth as you scroll, so movement continues the further
   down the page you go */
.bg-scene{
  position: fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;
}
.bg-parallax{
  position:absolute; inset:0;
  transform:
    translateX(calc(var(--px, 0px) * var(--depth, 0)))
    translateY(calc(var(--scroll-y, 0px) * var(--depth, 0) + var(--py, 0px) * var(--depth, 0)));
  will-change: transform;
}
.bg-blob{
  position:absolute; border-radius:50%; filter: blur(90px); will-change: transform;
}
.bg-blob-a{
  width:640px; height:640px; left:-160px; top:-200px;
  background: radial-gradient(circle, var(--todo), transparent 70%);
  opacity:.15; animation: bgDriftA 26s ease-in-out infinite alternate;
}
.bg-blob-b{
  width:540px; height:540px; right:-140px; top:18%;
  background: radial-gradient(circle, var(--progress), transparent 70%);
  opacity:.13; animation: bgDriftB 22s ease-in-out infinite alternate;
}
.bg-blob-c{
  width:580px; height:580px; left:6%; bottom:-220px;
  background: radial-gradient(circle, var(--done), transparent 70%);
  opacity:.14; animation: bgDriftC 30s ease-in-out infinite alternate;
}
@keyframes bgDriftA{ from{ transform: translate(0,0) scale(1); } to{ transform: translate(70px, 50px) scale(1.08); } }
@keyframes bgDriftB{ from{ transform: translate(0,0) scale(1); } to{ transform: translate(-60px, 70px) scale(0.94); } }
@keyframes bgDriftC{ from{ transform: translate(0,0) scale(1); } to{ transform: translate(50px, -60px) scale(1.06); } }

/* -- reset --------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6{ margin:0; font-family: var(--display); font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; }

:focus-visible{
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

  /* This site's decorative motion — the intro, the ticket tickers, the
     ambient background drift, the card flips, the hero canvas ripple — is
     the point of the design, by explicit request, and is exempted from
     the OS-level reduced-motion clamp above. Note this is a real OS
     setting, not a bug in the visitor's browser: on Windows it's Settings
     -> Accessibility -> Visual effects -> "Animation effects"; every
     Chromium/Gecko browser on that machine reports it identically, which
     is why a fix here (not "try a different browser") is what's needed.
     Values below are duplicated on purpose from their base rules: `revert`
     does not work here since it rolls back to the browser default (0s),
     not to the site's own rule. */
  #preloader{
    transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s cubic-bezier(.4,0,.2,1) !important;
  }
  #site{
    transition: opacity .8s cubic-bezier(.4,0,.2,1) !important;
  }
  .preloader-fill{
    transition: width .2s ease !important;
  }
  .preloader-slide.run{
    animation: preloaderSlide var(--slide-dur, 550ms) cubic-bezier(.4,0,.2,1) both !important;
  }
  .hero .frame-tag, .hero .frame-status, .hero .kinetic-h1 .k-role, .hero .frame-bottom-row,
  .hero .hero-lede, .hero .hero-actions, .hero .hero-stats, .hero .id-card{
    transition: opacity 1s cubic-bezier(.16,.8,.24,1), transform 1s cubic-bezier(.16,.8,.24,1) !important;
  }
  html.ybr-revealed .hero .frame-tag{ transition-delay: .06s !important; }
  html.ybr-revealed .hero .frame-status{ transition-delay: .12s !important; }
  html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(1){ transition-delay: .22s !important; }
  html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(2){ transition-delay: .34s !important; }
  html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(3){ transition-delay: .46s !important; }
  html.ybr-revealed .hero .frame-bottom-row{ transition-delay: .56s !important; }
  html.ybr-revealed .hero .hero-lede{ transition-delay: .68s !important; }
  html.ybr-revealed .hero .hero-actions{ transition-delay: .8s !important; }
  html.ybr-revealed .hero .hero-stats{ transition-delay: .92s !important; }
  html.ybr-revealed .hero .id-card{ transition-delay: .44s !important; }

  /* Card flips (the About badge, credential cards) are triggered directly
     by a click or hover, not autoplay — so, like the intro above, they
     keep their full animation rather than snapping instantly. */
  .badge{ transition: transform .7s cubic-bezier(.2,.8,.2,1) !important; }
  .cred-card{ transition: transform .6s cubic-bezier(.2,.8,.2,1) !important; }

  /* Ticket ticker tapes (top and bottom of the homepage hero) */
  .ticker-track{ animation: tickerScroll 34s linear infinite !important; }
  .ticker-track.reverse{ animation: tickerScroll 40s linear infinite reverse !important; }

  /* Ambient background blobs — the slow drift every page has, independent
     of scroll or pointer position */
  .bg-blob-a{ animation: bgDriftA 26s ease-in-out infinite alternate !important; }
  .bg-blob-b{ animation: bgDriftB 22s ease-in-out infinite alternate !important; }
  .bg-blob-c{ animation: bgDriftC 30s ease-in-out infinite alternate !important; }
}

.container{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background: var(--done);
  box-shadow: 0 0 0 3px rgba(111,207,151,0.15);
}

.section{ padding: 96px 0; position:relative; z-index:1; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h1, .section-head h2{ font-size: clamp(28px, 4vw, 40px); margin-top:10px; }
.section-head p{ color: var(--ink-dim); margin-top: 14px; font-size: 17px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.toolbar{
  position: sticky; top:0; z-index: 50;
  background: rgba(15,19,25,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.toolbar .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width: 36px; height:36px; border-radius: 9px;
  background: linear-gradient(155deg, var(--raised-2), var(--raised));
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--mono); font-weight:600; font-size:13px;
  color: var(--progress);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--display); font-size:14.5px; letter-spacing:0.01em; }
.brand-text span{ font-family: var(--mono); font-size:10.5px; color: var(--ink-faint); letter-spacing:0.06em; text-transform:uppercase; margin-top:2px;}

.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-links a{
  position:relative;
  padding: 8px 14px;
  font-size: 14px; font-weight:500;
  color: var(--ink-dim);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover{ color: var(--ink); background: var(--raised); }
.nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:14px; right:14px; bottom:3px;
  height:2px; border-radius:2px;
  background: var(--progress);
}
.nav-cta{
  font-family: var(--mono); font-size: 12.5px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  transition: border-color .2s ease, transform .15s ease;
}
.nav-cta:hover{ border-color: var(--link); transform: translateY(-1px); }

.nav-cta-mobile{ display:none; }

.nav-toggle{
  display:none;
  width: 38px; height:38px;
  border-radius:8px;
  border:1px solid var(--line);
  background: var(--panel);
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.nav-toggle span{ width:16px; height:2px; background: var(--ink-dim); border-radius:2px; transition: transform .2s ease, opacity .2s ease;}
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{
    position:absolute; top:68px; left:0; right:0;
    background: var(--panel);
    border-bottom:1px solid var(--line-soft);
    flex-direction:column; align-items:stretch;
    padding: 8px 16px 16px;
    display:none;
    gap:2px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:12px 10px; }
  .nav-links a.active::after{ display:none; }
  .nav-links a.active{ background: var(--raised); }
  .nav-cta{ display:none; }
  .nav-links .nav-cta-mobile{ display:block; margin-top:8px; text-align:center; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14.5px; font-weight:600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn-primary{
  background: var(--progress);
  color: #1B1404;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,209,102,0.18); }
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--link); color: var(--link); transform: translateY(-2px); }
.btn-block{ width:100%; justify-content:center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ padding: 40px 0 56px; position:relative; z-index:1; }
.hero-intro-container{ padding-left:0; padding-right:0; }
.hero-intro-container > .ticker-row{ margin-left: 0; }

/* ==========================================================================
   TICKER TAPES — the scrolling strips that bookend the kinetic headline,
   an agile-flavoured riff on a marquee: ticket IDs, jargon, client names.
   ========================================================================== */
.ticker-row{
  overflow:hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: var(--panel);
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-top{ margin-bottom: 12px; }
.ticker-bottom{ margin-top: 12px; }
.ticker-track{
  display:flex; width:max-content;
  animation: tickerScroll 34s linear infinite;
}
.ticker-track.reverse{ animation-direction: reverse; animation-duration: 40s; }
.ticker-row:hover .ticker-track{ animation-play-state: paused; }
.ticker-set{
  display:flex; align-items:center; gap: 14px; flex-shrink:0; padding-right:14px;
}
.ticker-set span{
  font-family: var(--mono); font-size: 11.5px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--ink-faint); white-space:nowrap;
}
.ticker-set i{ font-style:normal; color: var(--progress); opacity:.7; font-size:10px; }
@keyframes tickerScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   HERO FRAME — the boxed, oversized kinetic statement up top
   ========================================================================== */
.hero-frame{
  position:relative;
  overflow:hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255,209,102,0.05), transparent 55%),
    linear-gradient(175deg, var(--panel) 0%, var(--bg) 120%);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px) clamp(24px, 4vw, 40px);
}
.hero-frame-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none;
}
.frame-corner{
  position:absolute; width:22px; height:22px; z-index:2; pointer-events:none;
  border-color: var(--ink-faint); opacity:.55;
}
.frame-corner.tl{ top:14px; left:14px; border-top:2px solid; border-left:2px solid; border-radius:5px 0 0 0; }
.frame-corner.tr{ top:14px; right:14px; border-top:2px solid; border-right:2px solid; border-radius:0 5px 0 0; }
.frame-corner.bl{ bottom:14px; left:14px; border-bottom:2px solid; border-left:2px solid; border-radius:0 0 0 5px; }
.frame-corner.br{ bottom:14px; right:14px; border-bottom:2px solid; border-right:2px solid; border-radius:0 0 5px 0; }

.frame-top-row{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.frame-tag{
  font-family: var(--mono); font-size:12px; letter-spacing:.05em; color: var(--ink-faint);
}
.frame-status{
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--mono); font-size:12px; color: var(--done);
  background: rgba(111,207,151,0.1); border:1px solid rgba(111,207,151,0.25);
  padding:6px 11px; border-radius:999px;
}
.frame-status i{ width:6px; height:6px; border-radius:50%; background: var(--done); flex-shrink:0; animation: blink 1.8s infinite; }

.kinetic-h1{
  position:relative; z-index:2;
  margin-top: clamp(18px, 4vw, 30px);
  font-family: var(--display);
  font-weight:700;
  text-transform:uppercase;
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 7.4vw, 96px);
}
.kinetic-h1 .k-role{
  display:block;
  position:relative;
  width:max-content;
  max-width:100%;
  white-space: nowrap;
  cursor:default;
}
.kinetic-h1 .k-role:nth-child(1){ color: var(--todo); }
.kinetic-h1 .k-role:nth-child(2){ color: var(--progress); }
.kinetic-h1 .k-role:nth-child(3){ color: var(--done); }
/* subtle RGB-split glitch on hover, echoing a dropped frame */
.kinetic-h1 .k-role::before,
.kinetic-h1 .k-role::after{
  content: attr(data-text);
  position:absolute; left:0; top:0;
  width:100%; height:100%;
  opacity:0;
  clip-path: inset(0 0 0 0);
}
.kinetic-h1 .k-role:hover::before{
  opacity:.7; color: var(--link);
  transform: translate(3px, -2px);
  clip-path: inset(0 0 55% 0);
  transition: transform .12s ease;
}
.kinetic-h1 .k-role:hover::after{
  opacity:.7; color: var(--todo);
  transform: translate(-3px, 2px);
  clip-path: inset(55% 0 0 0);
  transition: transform .12s ease;
}

.frame-bottom-row{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  margin-top: clamp(20px, 4vw, 34px);
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.frame-loc{ font-size: 13.5px; color: var(--ink-dim); }
.frame-scroll{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size:11.5px; letter-spacing:.05em; text-transform:uppercase;
  color: var(--ink-faint);
  transition: color .2s ease, gap .2s ease;
}
.frame-scroll:hover{ color: var(--link); gap:11px; }
.frame-scroll span{ display:inline-block; animation: exploreBounce 1.6s ease-in-out infinite; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items:center;
  margin-top: 48px;
}
.hero-lede{
  font-size: 17.5px;
  color: var(--ink-dim);
  max-width: 46ch;
}
.hero-actions{ display:flex; gap:12px; margin-top: 30px; flex-wrap:wrap; }

.hero-stats{
  display:flex; gap:28px; margin-top: 44px;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
}
.stat .num{ font-family: var(--display); font-size: 26px; color: var(--ink); }
.stat .num::after{ content: attr(data-suffix); color: var(--progress); }
.stat .label{ font-size:12.5px; color: var(--ink-faint); margin-top:2px; font-family: var(--mono); text-transform:uppercase; letter-spacing:.04em;}

.id-card{
  position:relative;
  background: linear-gradient(165deg, var(--raised) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transform: rotate(1.5deg);
}

/* -- badge photo — the real headshot, framed like an ID card photo ------ */
.badge-photo{
  position:relative;
  aspect-ratio: 1/1;
  width:100%;
  border-radius: var(--radius-m);
  overflow:hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--raised-2) 0%, var(--raised) 100%);
}
.badge-photo img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center top;
  display:block;
}
.badge-corner{ position:absolute; width:20px; height:20px; border-color: var(--line-soft); z-index:1; }
.badge-corner.tl{ top:12px; left:12px; border-top:2px solid; border-left:2px solid; border-radius: 4px 0 0 0; }
.badge-corner.tr{ top:12px; right:12px; border-top:2px solid; border-right:2px solid; border-radius: 0 4px 0 0; }
.badge-corner.bl{ bottom:12px; left:12px; border-bottom:2px solid; border-left:2px solid; border-radius: 0 0 0 4px; }
.badge-corner.br{ bottom:12px; right:12px; border-bottom:2px solid; border-right:2px solid; border-radius: 0 0 4px 0; }

/* -- explore CTA ---------------------------------------------------------- */
.explore-btn{
  display:inline-flex; align-items:center; gap:10px;
  margin-top: 26px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px; font-weight:600;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.explore-btn:hover{ border-color: var(--link); background: var(--raised); transform: translateY(-2px); }
.explore-btn svg{ animation: exploreBounce 1.6s ease-in-out infinite; }
@keyframes exploreBounce{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.explore-hint{
  margin-top:10px;
  font-family: var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--ink-faint);
}
.hero .frame-tag,
.hero .frame-status,
.hero .kinetic-h1 .k-role,
.hero .frame-bottom-row,
.hero .hero-lede,
.hero .hero-actions,
.hero .hero-stats,
.hero .id-card{
  transition: opacity 1s cubic-bezier(.16,.8,.24,1), transform 1s cubic-bezier(.16,.8,.24,1);
}
html.ybr-loading .hero .frame-tag,
html.ybr-loading .hero .frame-status,
html.ybr-loading .hero .kinetic-h1 .k-role,
html.ybr-loading .hero .frame-bottom-row,
html.ybr-loading .hero .hero-lede,
html.ybr-loading .hero .hero-actions,
html.ybr-loading .hero .hero-stats{
  opacity:0; transform: translateY(30px);
}
html.ybr-loading .hero .id-card{
  opacity:0; transform: translateY(30px) rotate(1.5deg);
}
html.ybr-revealed .hero .frame-tag{ transition-delay: .06s; }
html.ybr-revealed .hero .frame-status{ transition-delay: .12s; }
html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(1){ transition-delay: .22s; }
html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(2){ transition-delay: .34s; }
html.ybr-revealed .hero .kinetic-h1 .k-role:nth-child(3){ transition-delay: .46s; }
html.ybr-revealed .hero .frame-bottom-row{ transition-delay: .56s; }
html.ybr-revealed .hero .hero-lede{ transition-delay: .68s; }
html.ybr-revealed .hero .hero-actions{ transition-delay: .8s; }
html.ybr-revealed .hero .hero-stats{ transition-delay: .92s; }
html.ybr-revealed .hero .id-card{ transition-delay: .44s; }
.id-card .tape{
  position:absolute; top:-11px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 84px; height: 22px;
  background: rgba(255,209,102,0.14);
  border: 1px solid rgba(255,209,102,0.22);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  backdrop-filter: blur(1px);
}
.id-photo{
  border-radius: var(--radius-m);
  overflow:hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
}
.id-photo img{ width:100%; height:100%; object-fit:cover; }
.id-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.id-meta h3{ font-size: 18px; }
.id-meta span{ font-family: var(--mono); font-size:11px; color: var(--ink-faint); }
.id-status{
  display:inline-flex; align-items:center; gap:6px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--done);
  background: rgba(111,207,151,0.1);
  border: 1px solid rgba(111,207,151,0.25);
  padding: 6px 10px; border-radius: 999px;
}
.id-status::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--done); }

/* ==========================================================================
   KANBAN BOARD (homepage signature)
   ========================================================================== */
.board-wrap{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
}
.board-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:14px;
  padding: 6px 6px 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.board-toolbar-left{ display:flex; align-items:center; gap:10px; }
.board-toolbar-left .dot-grid span{ display:inline-block; width:4px; height:4px; background: var(--ink-faint); border-radius:50%; margin-right:3px; }

.board-stats{ display:flex; gap: 18px; flex-wrap:wrap; align-items:center; }
.board-stat{
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim);
  display:flex; align-items:center; gap:6px;
}
.board-stat b{ color: var(--ink); font-size:14px; }
.board-hint{
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint);
  display:flex; align-items:center; gap:6px;
}

.burndown{ width: 130px; height: 36px; }

.board{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.board-col{
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 12px;
  min-height: 200px;
  display:flex; flex-direction:column;
  transition: background .15s ease, border-color .15s ease;
}
.board-col.drag-over{ background: rgba(99,180,242,0.06); border-color: var(--link); }
.col-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 4px 6px 12px;
}
.col-head h4{
  font-family: var(--mono); font-size: 12px; text-transform:uppercase; letter-spacing:.06em;
  display:flex; align-items:center; gap:8px;
}
.col-head h4::before{ content:""; width:8px; height:8px; border-radius:3px; }
.col-todo .col-head h4::before{ background: var(--todo); }
.col-progress .col-head h4::before{ background: var(--progress); }
.col-done .col-head h4::before{ background: var(--done); }
.col-count{
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  background: var(--raised); border-radius:999px; padding:2px 8px;
}
.card-slots{ display:flex; flex-direction:column; gap:10px; flex:1; min-height: 60px; }

.ticket{
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px 12px 11px;
  touch-action: none;
  user-select:none;
  cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.ticket:hover{ border-color: var(--ink-faint); }
.ticket.dragging{
  cursor:grabbing;
  box-shadow: var(--shadow-pop);
  transform: rotate(-2deg) scale(1.02);
  pointer-events: none;
}
.ticket-id{
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint);
  display:flex; justify-content:space-between; margin-bottom:6px;
}
.ticket-tag{
  padding: 1px 6px; border-radius:4px; font-size:9.5px; letter-spacing:.03em;
}
.tag-impact{ background: rgba(255,143,99,0.14); color: var(--todo); }
.tag-team{ background: rgba(99,180,242,0.14); color: var(--link); }
.tag-metric{ background: rgba(111,207,151,0.14); color: var(--done); }
.ticket-title{ font-size: 13.5px; line-height:1.4; color: var(--ink); }
.ticket-meta{
  margin-top: 9px; padding-top:8px; border-top: 1px dashed var(--line);
  display:flex; justify-content:space-between; align-items:center;
}
.ticket-co{ font-size:11px; color: var(--ink-faint); }
.ticket-pts{
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-dim);
  background: var(--bg); border:1px solid var(--line); border-radius:5px; padding:1px 6px;
}
.ticket.just-moved{ animation: pop 0.4s ease; }
@keyframes pop{ 0%{ transform: scale(1); } 40%{ transform: scale(1.05); } 100%{ transform: scale(1); } }

.card-placeholder{
  border: 1.5px dashed var(--link);
  border-radius: var(--radius-s);
  height: 0;
  opacity:0;
  transition: height .15s ease, opacity .15s ease;
}
.card-placeholder.show{ height: 54px; opacity: 0.6; }

@media (max-width: 780px){
  .board{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .id-card{ max-width: 340px; margin: 0 auto; transform:none; }
}

@media (max-width: 640px){
  .ticker-set span{ font-size: 10.5px; }
  .ticker-set{ gap: 10px; }
  .frame-corner{ width:16px; height:16px; }
  .frame-top-row{ gap:8px; }
  .frame-loc{ font-size:12.5px; }
  .kinetic-h1{ letter-spacing:-0.015em; }
}

/* ==========================================================================
   ABOUT — ID badge flip + tabs
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items:start;
}
.badge-scene{ perspective: 1400px; width:100%; }
.badge{
  position:relative;
  width: 100%;
  aspect-ratio: 3.4/4.6;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.badge.flipped{ transform: rotateY(180deg); }
.badge-face{
  position:absolute; inset:0;
  backface-visibility:hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--raised), var(--panel));
  box-shadow: var(--shadow-card);
  padding: 22px;
  display:flex; flex-direction:column;
}
.badge-face.back{ transform: rotateY(180deg); justify-content:center; }
.badge-clip{
  position:absolute; top:-10px; left:50%; transform:translateX(-50%);
  width:56px; height:20px; border-radius:4px;
  background: var(--raised-2); border:1px solid var(--line);
}
.badge-hole{
  position:absolute; top:-4px; left:50%; transform:translateX(-50%);
  width:10px; height:10px; border-radius:50%; background: var(--bg); border:1px solid var(--line);
}
.badge-name{ margin-top:16px; font-size:19px; }
.badge-role{ font-family: var(--mono); font-size:11px; color: var(--progress); margin-top:4px; text-transform:uppercase; letter-spacing:.04em;}
.badge-barcode{ display:flex; gap:2px; margin-top:auto; padding-top:16px; align-items:flex-end; height:26px; }
.badge-barcode span{ width:3px; background: var(--ink-faint); opacity:.5; }
.badge-flip-hint{
  font-family: var(--mono); font-size:10.5px; color: var(--ink-faint);
  text-align:center; margin-top:10px; display:flex; align-items:center; justify-content:center; gap:6px;
}
.badge-back-quote{ font-family: var(--display); font-size:17px; line-height:1.4; color: var(--ink); text-align:center; }
.badge-back-sign{ text-align:center; margin-top:14px; font-family: var(--mono); font-size:11px; color: var(--ink-faint); }

.tabs{ display:flex; gap:8px; border-bottom:1px solid var(--line-soft); margin-bottom:24px; }
.tab-btn{
  background:none; border:none; color: var(--ink-faint);
  font-family: var(--mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.05em;
  padding: 10px 4px; position:relative;
}
.tab-btn + .tab-btn{ margin-left: 22px; }
.tab-btn.active{ color: var(--ink); }
.tab-btn.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background: var(--progress);
}
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation: fadeUp .35s ease; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }

.about-copy p{ color: var(--ink-dim); font-size:16px; margin-bottom: 16px; }
.about-copy p:last-child{ margin-bottom:0; }
.about-facts{ display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin-top:26px; }
.fact{ background: var(--panel); border:1px solid var(--line); border-radius: var(--radius-s); padding:12px 14px; }
.fact span{ display:block; font-family: var(--mono); font-size:10.5px; color: var(--ink-faint); text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px;}
.fact strong{ font-size:14px; font-weight:600; }

.interest-preview{ display:flex; gap:16px; margin-top: 24px; }
.interest-chip{
  flex:1; display:flex; align-items:center; gap:12px;
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius-m);
  padding: 12px; transition: border-color .2s ease, transform .2s ease;
}
.interest-chip:hover{ border-color: var(--link); transform: translateY(-2px); }
.interest-chip img{ width:44px; height:44px; border-radius:8px; object-fit:cover; }
.interest-chip .name{ font-size:13.5px; font-weight:600; }
.interest-chip .sub{ font-size:11.5px; color: var(--ink-faint); }

@media (max-width: 820px){
  .about-grid{ grid-template-columns: 1fr; }
  .badge-scene{ max-width:300px; margin: 0 auto; }
}

/* ==========================================================================
   EXPERIENCE — sprint timeline
   ========================================================================== */
.timeline{ position:relative; padding-left: 34px; }
.timeline::before{
  content:""; position:absolute; left: 9px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--line), var(--line-soft));
}
.tl-item{
  position:relative; margin-bottom: 14px;
  opacity:0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.tl-item.in-view{ opacity:1; transform:none; }
.tl-dot{
  position:absolute; left: -34px; top: 22px;
  width:20px; height:20px; border-radius:50%;
  background: var(--panel); border:2px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.tl-item.is-current .tl-dot{ border-color: var(--done); }
.tl-dot i{ width:6px; height:6px; border-radius:50%; background: var(--ink-faint); }
.tl-item.is-current .tl-dot i{ background: var(--done); }

.tl-card{
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius-m);
  overflow:hidden;
}
.tl-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 18px 20px; cursor:pointer;
}
.tl-head:hover{ background: var(--raised); }
.tl-titles h3{ font-size:16.5px; }
.tl-titles .co{ font-family: var(--mono); font-size:12px; color: var(--progress); margin-top:4px; }
.tl-right{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.tl-dates{ font-family: var(--mono); font-size:11.5px; color: var(--ink-faint); white-space:nowrap; }
.tl-chevron{ transition: transform .25s ease; color: var(--ink-faint); flex-shrink:0; }
.tl-item.open .tl-chevron{ transform: rotate(180deg); }
.tl-body{
  max-height:0; overflow:hidden; transition: max-height .35s ease;
}
.tl-item.open .tl-body{ max-height: 400px; }
.tl-body ul{ padding: 0 20px 20px; }
.tl-body li{
  position:relative; padding-left:18px; margin-bottom:10px; color: var(--ink-dim); font-size:14.5px; line-height:1.55;
}
.tl-body li:last-child{ margin-bottom:0; }
.tl-body li::before{ content:"→"; position:absolute; left:0; color: var(--link); }

.caps-cloud{ display:flex; flex-wrap:wrap; gap:10px; }
.cap-tag{
  font-family: var(--mono); font-size:12.5px;
  padding: 9px 14px; border-radius:999px;
  background: var(--panel); border:1px solid var(--line); color: var(--ink-dim);
  transition: all .18s ease;
}
.cap-tag:hover{ transform: translateY(-3px); border-color: var(--link); color: var(--ink); }
.cap-tag.pinned{ background: rgba(255,209,102,0.12); border-color: var(--progress); color: var(--progress); }

.cred-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.cred-scene{ perspective:1200px; height: 168px; }
.cred-card{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); cursor:pointer;
}
.cred-scene:hover .cred-card, .cred-card.flipped{ transform: rotateY(180deg); }
.cred-face{
  position:absolute; inset:0; backface-visibility:hidden;
  border-radius: var(--radius-m); border:1px solid var(--line);
  background: var(--panel); padding:20px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.cred-face.back{ transform: rotateY(180deg); background: var(--raised); justify-content:center; }
.cred-icon{ color: var(--progress); }
.cred-face h4{ font-size:14.5px; line-height:1.4; }
.cred-face .org{ font-family: var(--mono); font-size:11px; color: var(--ink-faint); }
.cred-face.back p{ font-size:13px; color: var(--ink-dim); line-height:1.5; }

@media (max-width: 780px){
  .cred-grid{ grid-template-columns: 1fr; }
  .cred-scene{ height:auto; min-height:140px; }
}

/* ==========================================================================
   INTEREST — route diagrams
   ========================================================================== */
.interest-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.interest-card{
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius-l);
  overflow:hidden;
}
.interest-media{
  position:relative; aspect-ratio: 3/4; overflow:hidden;
  background: var(--panel);
}
.interest-media img{ width:100%; height:100%; object-fit:contain; transition: transform .5s ease; }
.interest-card:hover .interest-media img{ transform: scale(1.04); }
.interest-media svg{ position:absolute; inset:0; width:100%; height:100%; }
.route-path{
  fill:none; stroke: var(--progress); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s ease;
  filter: drop-shadow(0 0 4px rgba(255,209,102,0.5));
}
.interest-card:hover .route-path{ stroke-dashoffset: 0; }
.route-node{
  fill: var(--bg); stroke: var(--progress); stroke-width:2;
  opacity:0; transition: opacity .3s ease;
}
.interest-card:hover .route-node{ opacity:1; }
.route-node-label{
  font-family: var(--mono); font-size:9px; fill: var(--ink); text-anchor:middle;
  opacity:0; transition: opacity .3s ease .2s;
}
.interest-card:hover .route-node-label{ opacity:1; }

.interest-body{ padding: 22px 24px 26px; }
.interest-body h3{ font-size:19px; }
.interest-body p{ color: var(--ink-dim); font-size:14.5px; margin-top:10px; line-height:1.6; }
.interest-stat-row{ display:flex; gap:18px; margin-top:16px; padding-top:16px; border-top:1px dashed var(--line); }
.interest-stat-row div span{ display:block; font-family: var(--mono); font-size:10px; color: var(--ink-faint); text-transform:uppercase; }
.interest-stat-row div strong{ font-size:15px; }

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

/* ==========================================================================
   CONTACT — open a ticket
   ========================================================================== */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
.ticket-form{
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px;
}
.ticket-form-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--line-soft);
}
.ticket-form-head span{ font-family:var(--mono); font-size:12px; color: var(--ink-faint); }
.field{ margin-bottom:18px; }
.field label{
  display:block; font-family: var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-faint); margin-bottom:8px;
}
.field input, .field textarea{
  width:100%; background: var(--bg); border:1px solid var(--line); border-radius:8px;
  padding: 12px 14px; color: var(--ink); font-size:14.5px; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color: var(--link); outline:none; }
.field textarea{ resize:vertical; min-height:110px; }

.priority-row{ display:flex; gap:8px; }
.priority-chip{
  flex:1; text-align:center; padding:10px; border-radius:8px;
  border:1px solid var(--line); background: var(--bg); font-size:12.5px; font-family:var(--mono);
  color: var(--ink-dim); transition: all .15s ease;
}
.priority-chip.selected[data-p="low"]{ border-color: var(--link); color: var(--link); background: rgba(99,180,242,0.08); }
.priority-chip.selected[data-p="normal"]{ border-color: var(--progress); color: var(--progress); background: rgba(255,209,102,0.08); }
.priority-chip.selected[data-p="urgent"]{ border-color: var(--todo); color: var(--todo); background: rgba(255,143,99,0.08); }

.ticket-preview{
  font-family: var(--mono); font-size:12px; color: var(--ink-faint);
  margin-top: 14px; padding-top:14px; border-top:1px dashed var(--line);
  min-height: 18px;
}
.ticket-preview b{ color: var(--done); }

.contact-side .channel{
  display:flex; align-items:center; gap:14px;
  padding: 16px; border:1px solid var(--line); border-radius: var(--radius-m);
  background: var(--panel); margin-bottom:12px; position:relative;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-side .channel:hover{ border-color: var(--link); transform: translateX(3px); }
.channel-icon{
  width:40px; height:40px; border-radius:10px; background: var(--raised);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--progress);
}
.channel-text .label{ font-family:var(--mono); font-size:10.5px; color: var(--ink-faint); text-transform:uppercase; }
.channel-text .value{ font-size:14.5px; margin-top:2px; }
.copy-flag{
  position:absolute; right:16px; top:50%; transform: translateY(-50%);
  font-family: var(--mono); font-size:11px; color: var(--done);
  opacity:0; transition: opacity .2s ease;
}
.copy-flag.show{ opacity:1; }

.avail-badge{
  display:inline-flex; align-items:center; gap:8px; margin-top:24px;
  font-family: var(--mono); font-size:12.5px; color: var(--done);
  background: rgba(111,207,151,0.1); border:1px solid rgba(111,207,151,0.25);
  padding:9px 14px; border-radius:999px;
}
.avail-badge::before{ content:""; width:7px;height:7px;border-radius:50%; background: var(--done); animation: blink 1.8s infinite; }
@keyframes blink{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top:1px solid var(--line-soft);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
  width:36px; height:36px; border-radius:9px; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color: var(--ink-dim);
  transition: all .2s ease;
}
.footer-socials a:hover{ color: var(--ink); border-color: var(--link); transform: translateY(-2px); }
.footer-meta{ font-family: var(--mono); font-size:11.5px; color: var(--ink-faint); }

/* generic reveal utility */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .8s cubic-bezier(.4,0,.2,1), visibility .8s cubic-bezier(.4,0,.2,1);
}
#preloader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner{
  display:flex; flex-direction:column; align-items:center;
  width: 100%; max-width: 720px; padding: 0 32px;
}
.preloader-eyebrow{
  font-family: var(--mono); font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  color: var(--ink-faint); margin-bottom:28px;
}
.preloader-stage{
  width:100%; height: 100px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  position:relative;
}
.preloader-slide{
  font-family:'Space Grotesk',sans-serif; font-weight:700;
  letter-spacing:-0.01em;
  color: var(--ink);
  white-space:nowrap;
}
.preloader-slide.run{ animation: preloaderSlide var(--slide-dur, 550ms) cubic-bezier(.4,0,.2,1) both; }
@keyframes preloaderSlide{
  0%   { transform: translateY(42px); opacity:0; }
  22%  { transform: translateY(0);    opacity:1; }
  78%  { transform: translateY(0);    opacity:1; }
  100% { transform: translateY(-42px); opacity:0; }
}
.preloader-track{
  width:100%; max-width:280px; height:3px; border-radius:3px; margin-top:36px;
  background: var(--line-soft); overflow:hidden;
}
.preloader-fill{
  height:100%; width:0%; border-radius:3px;
  background: linear-gradient(90deg, var(--todo), var(--progress) 55%, var(--done));
  transition: width .2s ease;
}

#site{ transition: opacity .8s cubic-bezier(.4,0,.2,1); }
html.ybr-loading #site{ opacity: 0; }
