﻿:root{
  --black:#000;
  --white:#fff;
  --grey:#666;
  --light:#efefef;
  --wrap:1200px;
  --nav-block-radius:8px;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,sans-serif;background:var(--white);color:var(--black);-webkit-font-smoothing:antialiased;cursor:default!important}
button,a,summary,[role="button"],.btn,.tab,.nav-link,.project-tabs .tab{cursor:pointer!important}
.container{max-width:var(--wrap);margin:0 auto;padding:0 36px}

/* ----- header: reduce vertical padding to bring hero up ----- */
.site-header {
  border-bottom: 1px solid var(--light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* reduced padding (was ~20px) */
  padding: 10px 0; /* smaller header height */
}

/* ----- hero: reduce top spacing so it sits closer to header ----- */
.hero {
  /* original was 80px top; reduce it */
  padding: 30px 0 42px; /* top, right/left 0, bottom */
  background: var(--white);
}

/* If you also use .container padding for a lot of whitespace, you can slightly reduce it:
   .container { padding: 0 34px; } 
   (optional) */

/* ----- scroll cue: fixed near bottom of viewport (visible on landing) ----- */
.scroll-cue {
  position: fixed;
  left: 90%;
  transform: translateX(-50%) translateY(0);
  /* move it close to the bottom of the viewport so it shows on landing */
  bottom: 1vh;      /* <-- changed from 30vh to 8vh */
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity .32s ease, transform .32s ease;
  width: auto;
}

/* visible and hidden states remain the same */
.scroll-cue.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.scroll-cue.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

/* reveal helper (disabled: show immediately for faster feel) */
.fade-up{ opacity:1; transform:none; transition:none }
.fade-up.visible{ opacity:1; transform:none }

/* ------------- Footer ------------- */
.site-footer{ border-top:1px solid #efefef; padding:28px 0; text-align:center; color:var(--grey) }

/* ------------- Animations (marquee) ------------- */
/* keyframes created globally; JS will apply animation-duration */
@keyframes marquee { 0%{ transform:translateX(0) } 100%{ transform:translateX(-50%) } }

/* ------------- Responsive adjustments ------------- */
@media (max-width:1100px){
  .hero .heading{ font-size:84px }
  .wobble-wrap{ width:520px }
  .marquee-inner{ padding:12px }
  .marquee-item img{ height:36px }
  .tl-desc{ width:18% }
}
@media (max-width:760px){
  .wobble-wrap{ width:380px }
  .counters{ gap:20px }
  .timeline-inner{ padding:0 12px }
  .tl-desc{ font-size:13px; min-width:100px }
  .connect-title{ font-size:54px }
}
@media (max-width:520px){
  .wobble-wrap{ width:300px }
  .marquee-item img{ height:28px }
  .tl-desc{ display:block; width:100%; min-width:0; text-align:left }
  .tl-desc-row{ flex-direction:column; align-items:flex-start }
  .hero { grid-template-columns: 1fr; }
}

/* ------------- Accessibility: reduced motion ------------- */
@media (prefers-reduced-motion: reduce){
  .marquee-track { animation:none !important; transform:none !important }
  .wobble-wrap{ transition:none !important; transform:none !important }
  .resume-icon{ animation:none !important }
  .fade-up{ transition:none !important; opacity:1 !important; transform:none !important }
  .project-card img, .marquee-item img { transition:none !important }
}




----






    .container{max-width:var(--wrap);margin:0 auto;padding:0 28px}

.site-header{border-bottom:1px solid var(--light);background:var(--white);position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.logo img{height:44px;display:block}

/* nav (hover block -> active underline) */
.main-nav{display:flex;gap:18px;align-items:center}
.nav-link{position:relative;display:inline-block;padding:8px 12px;text-decoration:none;color:var(--black);font-weight:600;letter-spacing:0.2px;transition:color .22s ease;z-index:1;cursor:pointer;}
.nav-link::before{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:0;background:var(--black);border-radius:var(--nav-block-radius);z-index:-1;transition:height .28s cubic-bezier(.2,.9,.2,1)}
.nav-link:hover::before{height:40px}
.nav-link:hover{color:var(--white)}
/* active collapsed underline */
.nav-link.active::before{height:3px;top:auto;bottom:-6px;transform:none;border-radius:2px}
.nav-link.active{color:var(--black)}
.nav-link.active:hover::before{height:40px;top:50%;bottom:auto;transform:translateY(-50%)}
.nav-link.active:hover{color:var(--white)}


    main{padding:15px 0 5px}

    /* HERO STACK - centered flow */
    .hero-stack{display:flex;flex-direction:column;align-items:center;gap:18px;padding:5px 0}
    .wobble-wrap{width:620px;max-width:86%;display:block;will-change:transform;transition:transform .15s ease-out}
    .wobble-wrap img{display:block;width:100%;height:auto;pointer-events:none}



    .about-desc{max-width:900px;text-align:center;color:var(--grey);font-size:18px;line-height:1.6;margin:6px 0 0}

    /* counters */
    .counters{display:flex;gap:50px;align-items:center;justify-content:center;margin-top:10px;margin-bottom:10px;flex-wrap:wrap}
    .counter{
      min-width: 124px;
      min-height: 110px;
      padding: 18px 20px;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      text-align:center
    }
    .counter .num{font-family:'Bebas Neue',sans-serif;font-size:52px;line-height:.95;display:block}
    .counter .label{font-size:13px;color:var(--grey);text-transform:uppercase;letter-spacing:1.2px;margin-top:8px;display:block}

/* Marquee: full-width, seamless loop */
.marquee-full { width:100%; margin:44px 0; background:transparent; overflow:hidden; justify-content: center; }
.marquee-inner { max-width:var(--wrap); margin:0 auto; padding:10px 10px; justify-content: center; }
.trusted-label { font-family:'Special Elite',monospace; color:var(--grey); font-size:13px; text-transform:uppercase; }

.marquee-clip { position:relative; overflow:hidden; width:100%; }
.marquee-track {
  display:flex;
  gap:48px;
  align-items:center;
  width:max-content;
  /* animate via CSS, JS sets duration */
  animation: marquee 22s linear infinite;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.marquee-item{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
}
.marquee-item img {
  width:auto;
  height:60px;
  max-width:140px;
  object-fit:contain;
  flex:0 0 auto;
  display:block;
  filter:grayscale(100%);
  opacity:0.9;
  transition: filter .22s, opacity .22s;
}
.marquee-item img:hover { filter:grayscale(0); opacity:1; }

/* keyframes for marquee: move left by 50% (because we duplicated sequence) */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-30%); }
}

/* pause on hover for accessibility */
.marquee-clip:hover .marquee-track { animation-play-state: paused; }

/* responsive tweak */
@media (max-width:520px) {
  .marquee-item{ min-width:72px; }
  .marquee-item img{ height:28px; max-width:88px; }
}


    /* duplicate track wrapper for seamless loop */
    .marquee-clip{ position:relative; overflow:hidden; width:100%; }

/* skill image reduced size */
.skill-wrap { display:flex; justify-content:center; margin:18px auto; }
.skill-wrap img {
  max-width:720px;    /* smaller than before */
  width:82%;
  height:auto;
  background: #222222;
  display:block;
  align-items:center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  border-radius:18px;
  transition: transform .32s ease;
}
.skill-wrap img:hover { transform: translateY(-6px); }
@media (max-width:760px) { .skill-wrap img{ max-width:520px; width:94%; } }
 

/* TIMELINE - grid layout */
.timeline-area {
  width:100%;
  padding: 24px 0 12px;
  display:flex;
  justify-content:center;
}
.timeline-inner {
  max-width: var(--wrap);
  width:100%;
  padding: 0 28px;
  position: relative;
}

/* grid: each milestone is a column */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 items */
  gap: 15px;
  align-items: start;
  position: relative;
  z-index: 2; /* above the line */
}

/* the horizontal baseline behind dots */
.timeline-base-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 18px; /* tweak to place line where dots are centered */
  height: 3px;
  background: #eee;
  border-radius: 2px;
  z-index: 1;
}

/* individual milestone */
.tl-item {
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px 12px;
}

/* dot centered on baseline */
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--black);
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* year and text */
.tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.tl-text {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.4;
  max-width: 220px; /* keep lines from getting too wide */
}

/* responsive: stack into 2 rows on small screens */
@media (max-width: 980px) {
  .timeline-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .timeline-inner {
    padding: 0 16px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-base-line {
    top: 8px;
    bottom: 8px;
    left: 22px;
    right: auto;
    width: 0;
    height: auto;
    border-left: 1px dotted #c7c7c7;
    background: transparent;
  }

  .tl-item {
    align-items: flex-start;
    text-align: left;
    padding: 0 0 0 48px;
    position: relative;
  }

  .tl-dot {
    position: absolute;
    left: 15px;
    top: 24px;
    margin-bottom: 0;
    width: 14px;
    height: 14px;
    background: #fff;
  }

  .tl-year {
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1.1;
  }

  .tl-text {
    text-align: left;
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }
}



    /* center resume CTA and animated icon above */
    .resume-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:32px; }
    .resume-icon {
      width: 56px;
      height: 56px;
      display: grid;
      place-items: center;
      color: var(--black);
      animation: floaty 2200ms ease-in-out infinite;
    }
    .resume-icon-svg {
      width: 34px;
      height: 34px;
      display: block;
    }
    @keyframes floaty { 0%{ transform:translateY(0)} 50%{ transform:translateY(-8px)} 100%{ transform:translateY(0)} }
    .btn-resume { padding:12px 20px; border:2px solid var(--black); border-radius:10px; text-decoration:none; color:var(--black); font-weight:700; transition:all .28s; }
    .btn-resume:hover { background:var(--black); color:var(--white); transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,0.08); }

    /* reveal animation helpers (disabled globally) */
    .fade-up { opacity:1; transform:none; transition:none; }
    .fade-up.visible { opacity:1; transform:none; }

    /* responsive */
    @media (max-width:1100px){
      .wobble-wrap{width:520px}
      .marquee-inner{padding:12px}
      .marquee-item img{height:36px}
      .tl-desc{width:18%}
    }
    @media (max-width:760px){
      .wobble-wrap{width:380px}
      .counters{gap:20px}
      .timeline-inner{padding:0 12px}
      .tl-desc{font-size:13px;min-width:100px}
    }
    @media (max-width:420px){
      .wobble-wrap{width:300px}
      .marquee-item img{height:28px}
      .tl-desc{display:block;width:100%;min-width:0;text-align:left}
      .tl-desc-row{flex-direction:column;align-items:flex-start}
    }

    /* prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
      .marquee-track { animation: none !important; transform:none !important; }
      .wobble-wrap { transition:none !important; transform:none !important; }
      .resume-icon { animation: none !important; transform:none !important; }
      .fade-up { transition:none !important; opacity:1 !important; transform:none !important; }
    }
    *{box-sizing:border-box}
    body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--black);background:var(--white);-webkit-font-smoothing:antialiased}

/* Project page shared styles (add to style.css) */
.project-body{ padding-bottom:120px }
.project-image{ border-radius:6px; overflow:hidden }
.project-image img{ display:block; width:100%; height:auto }

/* slight fade-in for images when loaded */
.project-image img.is-loaded{ opacity:1; transform:none; transition:opacity .6s ease, transform .6s ease }
.project-image img{ opacity:0; transform:translateY(8px) }

/* floating rail buttons hover states */
.action-btn:hover{ transform:translateY(-6px); box-shadow:0 22px 56px rgba(0,0,0,0.12) }
.action-btn:active{ transform:translateY(-2px) }

/* small screens: compact connect CTA */
@media (max-width:520px){
  .connect-cta{ padding:8px 12px; bottom:12px }
}
/* ---------------- Project card overlay ---------------- */
.project-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-radius: 8px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.project-card img.thumb {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.9,.3,1);
}

/* overlay that shows on hover/focus */
.project-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.project-card .card-title {
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.6px;
}

/* hover + focus behavior */
.project-card:hover .card-overlay,
.project-card:focus-within .card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover img.thumb,
.project-card:focus-within img.thumb {
  transform: scale(1.03);
}

/* mobile: avoid overlay on touch where it doesn't make sense */
@media (max-width:760px){
  .project-card .card-overlay { display: none; }
}

/* ---------------- Project end-sign ---------------- */
/* ---------------- Footer (site-wide) ---------------- */
.site-footer {
  border-top:1px solid #efefef;
  padding:28px 0;
  background: #fff;
}
.site-footer .footer-inner {
  max-width:var(--wrap); margin:0 auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.site-footer .footer-logo img { height:36px; display:block }
.site-footer .socials { display:flex; gap:14px; align-items:center }
.site-footer .socials a { text-decoration:none; color:var(--grey); font-weight:600; font-size:14px; }
@media (max-width:720px){
  .site-footer .footer-inner{ flex-direction:column; gap:12px; text-align:center }
}

/* small focus states for accessibility */
.project-card:focus { outline: 3px solid rgba(0,0,0,0.06); outline-offset:3px; }

/* ---------- Global header / nav styles (paste into style.css) ---------- */

.site-header {
  width:100%;
  background: #fff;
  border-bottom: 1px solid #efefef;
  position: sticky;
  top: 0;
  z-index: 1200;
}

.header-inner {
  --wrap: 1200px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.site-logo img {
  display:block;
  height:40px;
}

/* nav layout */
.site-nav {
  position:relative;
  display:flex;
  align-items:center;
}

.nav-list {
  display:flex;
  gap:20px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight:600;
  letter-spacing:0.2px;
}

/* nav links - base */
.nav-link {
  display:inline-block;
  padding:8px 12px;
  border-radius:14px;
  color: #111;
  text-decoration:none;
  position:relative;
  transition: color .18s ease, transform .12s ease;
  z-index:2;
  font-size:15px;
}

/* hover pill effect: a black rounded box that appears behind the link */
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 14px;
  background: #000;
  opacity: 0;
  transform: scaleX(0.95);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.9,.3,1);
  z-index: -1;
}

/* when hovering, show the pill and white text */
.nav-link:hover::before,
.nav-link:focus::before {
  opacity: 1;
  transform: scaleX(1);
}
.nav-link:hover,
.nav-link:focus {
  color: #fff;
  outline: none;
}

/* active state: collapsed pill -> underline */
.nav-link.is-active {
  color: #000; /* text returns to black when active (underline indicates current page) */
}

/* the underline element is controlled by JS (position & width) */
.nav-underline {
  position: absolute;
  height: 4px;
  background: #000;
  bottom: -12px;
  left: 0;
  width: 0;
  border-radius: 3px;
  transition: left .32s cubic-bezier(.2,.9,.3,1), width .32s cubic-bezier(.2,.9,.3,1), opacity .18s;
  opacity: 0;
  z-index:1;
}

/* show underline when an item is active (JS will set dimensions) */
.nav-underline.visible { opacity: 1; }

/* keyboard focus visible */
.nav-link:focus {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  border-radius: 12px;
}

/* mobile responsiveness */
@media (max-width:720px) {
  .header-inner { padding:14px 18px; }
  .nav-list { gap:12px; font-size:14px; }
  .nav-link { padding:6px 8px; border-radius:10px; }
  .site-logo img { height:34px; }
}


  /* --- Projects layout tweaks (append to style.css) --- */

/* Grid container for the project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 28px 0 80px;
}

/* A single project card - keeps simple, clean look */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 14px rgba(10,10,10,0.03);
  min-height: 320px;
}

/* hover lift */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(10,10,10,0.06);
}

/* image area - use background-image so it always covers */
.project-thumb {
  width: 100%;
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
}

/* meta area: title, category, year, small desc */
.project-meta {
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.project-meta h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  font-weight: 600;
}

.project-meta .meta-sub {
  margin-top: 4px;
  color: #777;
  font-size: .92rem;
}

/* tabs (category buttons) */
.project-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.project-tabs .tab {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  cursor: pointer;
  font-size: .92rem;
  color: #333;
}
.project-tabs .tab.active {
  background: #111;
  color: #fff;
  border-color: rgba(0,0,0,0.12);
}

/* small responsive tweaks */
@media (max-width: 640px) {
  .project-thumb { height: 180px; }
  .projects-grid { gap: 18px; }
}

/* Page inner container to match overall site spacing */
.page-inner {
  max-width: 1180px;     /* same content width used across site */
  margin: 0 auto;        /* center */
  padding: 0 36px;       /* horizontal padding to match other pages */
  box-sizing: border-box;
}

/* Ensure tabs and sort align inside the centered container */
.page-inner .project-tabs {
  margin-top: 12px;
  margin-bottom: 18px;
}

/* Keep sort control aligned right but inside the container */
.page-inner > div[style*="float:right"] {
  float: right;
  margin-top: 6px;
}

/* Make the projects grid fit inside the container nicely */
.page-inner .projects-grid {
  margin-top: 26px;
  gap: 26px;
}

/* Keep previous card styles but ensure they don't stretch too wide on big screens */
.page-inner .project-card {
  min-height: 300px;
}

/* small screens - reduce horizontal padding */
@media (max-width: 640px) {
  .page-inner { padding: 0 18px; }
  .project-thumb { height: 180px; }
}

/* projects spacing, card gap and consistent aspect ratio */
.page-inner { max-width: 1180px; margin: 0 auto; padding: 0 36px; box-sizing: border-box; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 26px;
}

/* card */
.project-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .16s ease, box-shadow .16s ease;
}

/* hover */
.project-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

/* aspect-ratio for consistent card thumbs (16:9). Change to 4/3 -> 4/3 if you prefer */
.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display:block;
}

/* meta area */
.project-meta { padding: 16px; }
.project-meta h4 { margin: 0 0 6px 0; font-size:1.05rem; font-weight:600; }
.project-meta .meta-sub { color: #777; font-size: .95rem; }

/* tabs */
.project-tabs { display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0; }
.project-tabs .tab { padding:8px 12px; border-radius:8px; border:1px solid rgba(0,0,0,0.06); background:#fff; cursor:pointer; }
.project-tabs .tab.active { background:#111; color:#fff; border-color:rgba(0,0,0,0.12); }

/* small screens */
@media (max-width: 640px) {
  .page-inner { padding: 0 18px; }
  .projects-grid { gap: 18px; }
  .project-thumb { aspect-ratio: 4 / 3; }
}

/* --- Force clear spacing between project cards --- */
.projects-grid {
  /* ensure grid and gaps are enforced */
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 42px !important;            /* horizontal & vertical gap between cards */
  row-gap: 28px !important;        /* extra explicit row gap */
  column-gap: 28px !important;
  margin-top: 26px;
  align-items: start;              /* keeps cards top-aligned */
  padding-bottom: 18px;
  box-sizing: border-box;
}

/* make sure no child margin collapse removes the gap */
.projects-grid > * {
  margin: 0 !important;
}

/* ensure card has internal padding (so content doesn't touch edges) */
.project-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.04);
  box-sizing: border-box;
  padding: 0;                       /* keep thumb flush */
}

/* add spacing inside the meta area (so thumb and text have breathing room) */
.project-meta {
  padding: 18px !important;
}

/* ensure the thumb uses the aspect-ratio but doesn't collapse adjacent spacing */
.project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* safety: on very small screens reduce gap */
@media (max-width: 640px) {
  .projects-grid { gap: 16px !important; }
  .project-meta { padding: 14px !important; }
}

/* Project detail: vertical Behance-like stack */
.project-gallery {
  display: block !important;
  width: 100%;
  max-width: 1180px;         /* matches .page-inner width */
  margin: 40px auto;         /* center in page-inner */
  padding: 0 18px;
  box-sizing: border-box;
}

.project-gallery .project-image {
  width: 100%;
  margin-bottom: 44px;       /* vertical space between stacked items */
  background: transparent;
  box-sizing: border-box;
}

/* Images scale to container width, keep aspect, and lazy-load friendly */
.project-gallery .project-image img,
.project-gallery .project-image video {
  width: 100%;
  height: auto;
  display: block;
  max-height: none;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10,10,10,0.05);
  object-fit: contain;
  background: #fafafa;
}

/* Slightly smaller spacing on small screens */
@media (max-width: 640px) {
  .project-gallery { padding: 0 14px; margin: 28px auto; }
  .project-gallery .project-image { margin-bottom: 28px; }
  .project-gallery .project-image img { border-radius: 10px; }
}

.project-gallery .project-image video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(10,10,10,0.05);
}

/* === Force-visible, Behance-style vertical gallery (paste at end of style.css) === */

.project-gallery {
  width: 100%;
  max-width: 1180px;
  margin: 40px auto;
  box-sizing: border-box;
  padding: 0 18px;
  display: block !important;
}

/* each media item is a full-width block with spacing */
.project-gallery .project-image {
  width: 100%;
  margin-bottom: 44px;
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
}

/* Images + videos: full width, visible, with nice shadow */
.project-gallery .project-image img,
.project-gallery .project-image video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(10,10,10,0.06);
  background: #fff;           /* prevents white-on-white blending if any transparency exists */
  z-index: 1;
}

/* ensure wrapper and gallery aren't collapsing */
#projectBody, .project-gallery, .project-image {
  min-height: 20px;
}

/* small screens: reduce spacing and radius */
@media (max-width: 640px) {
  .project-gallery { padding: 0 14px; margin: 28px auto; }
  .project-gallery .project-image { margin-bottom: 28px; }
  .project-gallery .project-image img,
  .project-gallery .project-image video { border-radius: 10px; }
}

/* Force gallery visible & full-width (append to style.css) */
.project-gallery { width: 100%; max-width: 1180px; margin: 40px auto; padding: 0 18px; box-sizing: border-box; display:block; }
.project-gallery .project-image { width: 100%; margin-bottom: 40px; overflow:visible; }
.project-gallery img, .project-gallery video { width:100% !important; height:auto !important; display:block !important; object-fit:contain !important; border-radius:12px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); background:#fff; }
#projectBody, .project-gallery, .project-image { min-height: 20px; }

.project-gallery {
  width: 100%;
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  background: #fff;
}

/* Unified individual project page title style */
.project-page-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(32px, 4vw, 40px) !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 20px 0 !important;
  max-width: none !important;
}

/* ===== Responsive helpers (paste at end of style.css) ===== */

/* fluid base font */
:root {
  --fs-base: 16px;
}
html { font-size: var(--fs-base); }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; color:#111; }

/* fluid font sizes using clamp */
h1 { font-size: clamp(24px, 4.2vw, 36px); }
h2 { font-size: clamp(18px, 3.2vw, 24px); }
p, a, li { font-size: clamp(13px, 1.6vw, 16px); }

/* projects grid responsive */
.projects-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
}
@media (max-width:980px){ .projects-grid{ grid-template-columns: repeat(2, 1fr); gap:20px; } }
@media (max-width:640px){ .projects-grid{ grid-template-columns: 1fr; gap:16px; } }

/* make thumbnails preserve 16:9 */
.project-thumb { width:100%; aspect-ratio:16/9; background-size:cover; background-position:center; }

/* make buttons and icons comfortable touch size on small screens */
.icon-btn, .nav-toggle, .btn { min-width:44px; min-height:44px; }

/* Shrink typography and icons on mobile for compact view */
@media (max-width:768px) {
  :root { --fs-base:14px; }
  .site-logo img { height:32px; }
  .nav-list a { font-size:15px; }
  .btn { padding:10px 16px; font-size:14px; }
}

/* very small phones */
@media (max-width:420px) {
  :root { --fs-base:13px; }
  .nav-list a { font-size:14px; }
}
/* ===== UI Interactions: page transition + magnetic buttons ===== */
@media (prefers-reduced-motion: no-preference) {
  html.ui-page-transition body {
    opacity: 1;
    transform: translate3d(22px, 0, 0);
    transition: transform 420ms cubic-bezier(.22,.84,.3,1), filter 420ms ease;
    will-change: transform;
  }

  html.ui-page-transition.ui-page-ready body {
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }

  html.ui-page-transition.ui-page-leaving body {
    transform: translate3d(-26px, 0, 0);
    filter: blur(.6px);
  }
}

.magnetic-btn {
  will-change: transform;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

@media (max-width: 768px) {
  .mobile-menu .nav-list {
    gap: 24px !important;
  }

  .mobile-menu .nav-list a {
    font-size: 22px !important;
    line-height: 1.25;
    padding: 12px 8px !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
  }

  .mobile-bottom-nav a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }

  .mobile-bottom-nav a.is-active {
    color: #111;
    background: rgba(17, 17, 17, 0.08);
  }
}

/* ===== Phase 2 Mobile Comfort ===== */
@media (max-width: 768px) {
  .site-header .container > nav > .nav-list {
    display: none !important;
  }

  .site-header .nav-toggle {
    display: inline-flex !important;
  }

  .mobile-menu {
    display: none;
  }

  .tab,
  .project-back-link,
  .social a,
  .cb-viewall-btn,
  .cc-viewall-btn,
  .btn,
  .btn-send {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    touch-action: manipulation;
  }

  .projects-grid {
    gap: 14px !important;
  }

  .project-info h4,
  .cc-info h4 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .project-info p,
  .cc-info p {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
  }
}

.mobile-fab-stack {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fab-stack {
    position: fixed;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-fab-stack a,
  .mobile-fab-stack button {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    background: #111;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  }

  .mobile-fab-stack a svg,
  .mobile-fab-stack button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
  }

  .mobile-fab-stack .fab-top {
    background: #222;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-fab-stack .fab-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.testi-controls {
  display: none;
}

@media (max-width: 768px) {
  .testi-controls {
    margin: 10px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .testi-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    color: #111;
    display: grid;
    place-items: center;
  }

  .testi-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }

  .testi-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
  }

  .testi-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c6c6c6;
    border: 0;
    padding: 0;
  }

  .testi-dot.is-active {
    width: 18px;
    background: #111;
  }
}


/* ===== Navigation reliability + desktop indicator ===== */
.site-header .container > nav > .nav-list {
  position: relative;
}

.site-header .container > nav > .nav-list a.is-current {
  color: #111;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 20px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 280ms cubic-bezier(.22,.84,.3,1), width 280ms cubic-bezier(.22,.84,.3,1), opacity 180ms ease;
  pointer-events: none;
}

.nav-indicator.visible {
  opacity: 1;
}

@media (max-width: 1024px) {
  .site-header .container > nav > .nav-list {
    display: none !important;
  }

  .site-header .nav-toggle {
    display: inline-flex !important;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-bottom-nav a {
    min-height: 52px;
  }

  .mobile-fab-stack {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}


/* subtle desktop hover, indicator remains click/page driven */
@media (min-width: 1025px) {
  .site-header .container > nav > .nav-list a {
    transition: color 160ms ease;
  }

  .site-header .container > nav > .nav-list a:hover,
  .site-header .container > nav > .nav-list a:focus-visible {
    color: #333;
  }
}

/* Global accessible focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Keep header permanently pinned on every page */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000 !important;
}

/* Project pages: fixed back FAB + title/share in same row */
.project-header {
  margin-top: 72px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box;
}

/* Hard lock: project header card and project media use the exact same outer width */
.project-header,
.project-gallery {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.project-gallery {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-title-row .project-page-title {
  margin: 0 !important;
}

.project-title-row .project-share-btn {
  margin: 0;
  flex-shrink: 0;
}

.project-back-fab {
  position: fixed !important;
  top: calc(var(--header-offset, 84px) + 18px) !important;
  left: max(14px, calc((100vw - 1200px) / 2 + 20px)) !important;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 2100;
}

@media (max-width: 900px) {
  .project-header {
    margin-top: 64px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .project-back-fab {
    top: calc(var(--header-offset, 78px) + 14px) !important;
    left: 14px !important;
    width: 40px;
    height: 40px;
  }
}

/* Project pages: plain continuous image stack, no reveal, no decorative styling */
.project-body,
.project-gallery {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.project-image,
.project-gallery img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.project-image {
  width: 100% !important;
  overflow: visible !important;
}

.project-image img,
.project-gallery img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

/* Never hide project media behind reveal classes/state */
.project-gallery img[data-reveal],
.project-gallery video[data-reveal],
.project-image img[data-reveal],
.project-image video[data-reveal],
.project-gallery img.is-visible,
.project-gallery video.is-visible,
.project-image img.is-visible,
.project-image video.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}



