/* =========================================================
 * stellar.css — Production
 * Isha Chury · Interaction Designer · 2026
 * ========================================================= */

/* --- 0. TOKENS --- */
:root {
  --bg:               #ffffff;
  --surface:          #f7f7f5;
  --hero-bg:          #111111;
  --text:             #3a3a3a;
  --text-light:       #666666;
  --muted:            #929292;
  --text-on-dark:     #b8b8b8;
  --line:             #e0e0db;
  --accent-location:  #DD2455;
  --accent-glow:      rgba(255,255,255,0.18);
  --green:            #207221;
  --shadow-soft:      0 8px 24px rgba(0,0,0,0.06);
  --shadow-card:      0 20px 60px rgba(0,0,0,0.10);
  --shadow-lift:      0 32px 80px rgba(0,0,0,0.16);
  --radius-xl:        34px;
  --radius-lg:        26px;
  --radius-md:        18px;
  --radius-pill:      999px;
  --shell-width:      92%;
  --shell-max:        1200px;
  --shell-pad:        4%;
  --nav-glow:         0 0 15px rgba(255,255,255,0.20),
                      0 0 40px rgba(255,255,255,0.12),
                      0 0 80px rgba(255,255,255,0.08);
}

/* --- 1. RESET --- */
*, *::before, *::after { box-sizing: border-box; cursor: none !important; }
html  { scroll-behavior: smooth; }
body  { margin: 0; background: var(--bg); color: var(--text);
        font-family: 'Be Vietnam Pro', sans-serif;
        -webkit-font-smoothing: antialiased; }
img   { display: block; }
a     { text-decoration: none; }
button { font-family: inherit; }

/* --- 2. GRID SHELL --- */
.site-shell {
  width: var(--shell-width);
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

/* =========================================================
 * CUSTOM CURSOR
 * ========================================================= */
.custom-cursor {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  background: rgba(150,150,150,0.08);
  border: 1.5px solid rgba(200,200,200,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1),
              background  0.15s ease,
              border-color 0.15s ease;
  will-change: transform, left, top;
}

.custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.4);
  background: rgba(180,180,180,0.12);
  border-color: rgba(220,220,220,0.8);
}

/* =========================================================
 * NAVIGATION
 * ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4%;
  color: #ffffff;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17,17,17,0.95);
  border: none;
  border-radius: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: none;
}

.brand-block { flex: 1 0 30%; display: flex; flex-direction: column; }

.brand-block h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-block p {
  margin: 2px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.65rem, 0.75vw, 0.8rem);
  font-weight: 400;
  color: #888;
}

.nav-wrapper {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.floating-nav {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(158,158,158,0.55);
  border-radius: var(--radius-pill);
  background: rgba(25,25,25,1);
  gap: 5px;
}

.floating-nav a {
  position: relative;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.floating-nav a.active {
  background: #383838;
  color: #ffffff;
  box-shadow: var(--nav-glow);
}

.floating-nav a.active::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: rgba(220,220,220,0.8);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* Right cluster */
.nav-right-cluster {
  flex: 1 0 30%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-text-link, .nav-resume-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.75rem, 0.85vw, 0.88rem);
  font-weight: 500;
  color: #e8e8e8;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-text-link:hover, .nav-resume-btn:hover {
  color: #ffffff;
  background: rgba(30, 30, 30, 0.85);
}

.nav-arrow-icon {
  width: 11px;
  height: auto;
  display: inline-block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.mobile-menu-trigger { display: none; position: relative; align-items: center; }

.at-circle {
  width: 48px; height: 48px;
  position: relative;
  background: #222;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(168,168,168,0.55);
}

.at-icon, .close-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.close-icon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }

.mobile-menu-trigger.is-active .at-icon {
  opacity: 0; transform: translate(-50%, -50%) rotate(90deg);
}
.mobile-menu-trigger.is-active .close-icon {
  opacity: 1; transform: translate(-50%, -50%) rotate(0deg);
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px); right: 0;
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 1001;
}

.mobile-dropdown a {
  display: block; padding: 11px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 500; color: #222;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mobile-dropdown a:hover { background: rgba(0,0,0,0.05); }

.mobile-menu-trigger.is-active .mobile-dropdown { display: block; }

/* =========================================================
 * HERO — DARK SECTION
 * ========================================================= */
.hero-full-wrapper {
  width: 100%;
  min-height: calc(100vh + 36px);
  height: calc(100vh + 36px);
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow-x: hidden;
  padding: 110px 0 0;
  position: relative;
}

.hero-full-wrapper .site-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  width: 100%;
  gap: 9vw;
  margin-top: -20px;
}

/* ---- Card visual ---- */
.hero-visual {
  flex: 1;
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  perspective: 900px;
  perspective-origin: 48% 52%;
}

/* =========================================================
 * HERO IMAGE — manual editing guide
 *
 *   width / max-width : controls overall size. width is a percentage
 *                        of the viewport (vw) so it scales with screen
 *                        size; max-width caps it on very large screens.
 *                        ↑ increase both to make the image bigger.
 *   right             : distance from the right edge of .hero-visual —
 *                        more negative (or smaller) pulls it further
 *                        right / closer to the edge.
 *   bottom            : vertical position — more negative pushes the
 *                        image further down past the section's bottom.
 * ========================================================= */
.hero-cards-img {
  position: absolute;
  z-index: 1;
  width: 105vw;
  max-width: 1380px;
  height: auto;
  right: -90%;
  bottom: -121%;
  top: auto;
}

/* ---- Hero text ----
 * Breaks away from the site-shell's normal margin — pulled left past
 * where the rest of the page's content starts, for visual impact.
 * ↓ adjust margin-left to control how far it breaks out:
 *   more negative = further left / closer to the screen edge
 *   0 = back to sitting flush with the site-shell margin */
.hero-text {
  flex: 0 1 auto;
  text-align: left;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
  position: relative;
  z-index: 1;
  margin-top: -6vw;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 24px -3px;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-transform: uppercase;
}

/* "DESIGNER" word only — wrapped in <span class="hero-title-designer"> in the HTML */
.hero-title-designer {
  color: #ABABAB;
}

.hero-sub-brand { display: none; }

.hero-subtitle {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(0.78rem, 1.4vw, 1.15rem);
  color: #525252;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.location-accent { color: var(--accent-location); font-weight: inherit; }

.hero-bio {
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 55px;
  color: var(--text-on-dark);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 300;
}

/* Social icons */
.social-links { display: flex; gap: 30px; }

.social-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgb(49, 49, 49);
  display: flex; align-items: center; justify-content: center;
  border:  1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255);
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgb(146, 146, 146);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
}

/* =========================================================
 * WHITE CAP TRANSITION
 * ========================================================= */
.white-cap-transition {
  background: var(--bg);
  height: 90px;
  border-radius: 40px 40px 0 0;
  margin-top: -36px;
  position: relative;
  z-index: 10;
  display: flex; justify-content: center; align-items: center;
}

.arrow-down {
  font-size: 1.2rem;
  color: #aaa;
  animation: bounceArrow 2.5s ease-in-out infinite;
  display: block;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0px); opacity: 0.5; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* =========================================================
 * PROJECTS / WORK SECTION
 * ========================================================= */
.projects-section {
  background: var(--bg);
  padding: 60px 0 100px;
}

.projects-section .site-shell {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.case-study-group {
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(40px);
}

.case-study-group.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.case-study-image-card {
  background: transparent;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1),
              box-shadow 0.4s ease;
}

.case-study-image-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.mockup-stack {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: visible;
  background: #141414;
}

.mockup-frame-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

.browser-header { display: none; }
.dot-red, .dot-yellow, .dot-green { display: none; }

.mockup-interface-container {
  position: absolute;
  width: 90%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.mockup-interface-img {
  width: 100%; height: auto;
  border-radius: 8px; display: block;
}

.case-study-info-block {
  padding: 0; /* Changed from 0 8px to 0 to let it align flush with the card edge */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.project-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 0;
}

.project-text-column {
  flex: 1;
  display: flex; 
  flex-direction: column; 
  gap: 4px;
}

.project-info h3,
.case-study-info-block h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.35rem; 
  font-weight: 700;
  margin: 0; 
  line-height: 1.05; 
  color: var(--text);
  display: flex; 
  align-items: center; 
  gap: 8px;
  flex-wrap: wrap;
}

.project-info h3 span,
.case-study-info-block h3 span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400; 
  color: var(--muted);
  font-size: 0.95rem;
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
}

.project-description {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  max-width: 100%; /* Changed from 680px to 100% to fill the full layout width */
}

/* =========================================================
 * SANDBOX SECTION
 * ========================================================= */
.sandbox-section {
  background: var(--bg);
  padding: 80px 0 120px;
}

.sandbox-header {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; margin-bottom: 72px;
}

.header-line {
  flex: 1; height: 1px; background: var(--line); position: relative;
}

.header-line::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--line);
  border-radius: 50%; top: -2.5px;
}
.header-line:first-child::after { right: 0; }
.header-line:last-child::after  { left: 0;  }

.sandbox-header h2 {
  font-family: 'Alexandria', sans-serif;
  font-weight: 800; letter-spacing: 3px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin: 0; color: var(--text);
}

.sandbox-container {
  display: flex; gap: 28px;
  align-items: stretch;
  width: 100%; max-width: 1100px;
  margin: 0 auto;
}

.sandbox-visual { flex: 1.2; min-width: 0; }

.sandbox-image {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.sandbox-content-card {
  flex: 1; min-width: 0;
  background: #141414;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.sandbox-content-card::before { top: 16px; left: 18px; }
.sandbox-content-card::after  { bottom: 16px; right: 18px; }

.sandbox-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; color: #444;
  letter-spacing: 0.08em;
  margin-bottom: 20px; display: block;
}

.sandbox-text h3 {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700; color: #ffffff;
  margin: 0 0 16px;
}

.sandbox-text p {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.7; color: rgba(255,255,255,0.55);
  margin: 0 0 24px; word-wrap: break-word;
}

.publication-tag {
  font-family: 'Space Grotesk', sans-serif;
  color: #444; font-size: 0.8rem; letter-spacing: 0.05em;
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
}



.sandbox-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 44px;
}

.dot {
  width: 7px; height: 7px;
  background: #ddd; border-radius: 50%; border: none; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active { background: #888; transform: scale(1.3); }

/* =========================================================
 * FOOTER
 * ========================================================= */
.site-footer {
  background: #111111;
  margin: 0 16px 16px;
  border-radius: 28px 28px 20px 20px;
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.footer-inner {
  max-width: 1285px;
  margin: 0 auto;
  padding: 80px 6% 56px;
  display: flex; flex-direction: column;
}

.footer-hook-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.hook-text {
  font-family: 'Alexandria', sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.0;
  color: #ffffff; margin: 0;
  letter-spacing: -0.03em;
}

.hook-text em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

.footer-availability {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; color: #666;
  font-weight: 500;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 6px;
}

.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
  animation: pulse-dot 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.footer-rule {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 3px; }

.footer-brand strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 700; color: #ffffff;
}

.footer-brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; color: #444;
}

.footer-links-group {
  display: flex; align-items: center; gap: 28px;
}

.footer-icon-link {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: #555;
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.footer-icon-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-icon-link svg { flex-shrink: 0; }

.footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem; color: #333;
}

/* =========================================================
 * SCROLL REVEAL
 * ========================================================= */
.reveal-card {
  opacity: 0;
  transform: translateY(48px);
}

/* =========================================================
 * RESPONSIVE — MOBILE NAV (≤850px)
 * ========================================================= */
@media (max-width: 850px) {
  .desktop-only { display: none !important; }

  .topbar {
    width: 100%; max-width: none;
    height: 76px; padding: 0 6%;
  }
  .topbar::before { border-radius: 0; }

  .nav-wrapper { margin-left: auto; }
  .floating-nav { display: none; }
  .mobile-menu-trigger { display: flex; }
}

/* =========================================================
 * RESPONSIVE — HERO STACK (≤760px)
 * ========================================================= */
@media (max-width: 760px) {
  .hero-full-wrapper { padding: 100px 0 60px; }

  .hero-deco-outer, .hero-deco-inner { display: none; }

  .hero-full-wrapper .site-shell {
    flex-direction: column;
    align-items: center; text-align: center;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center; text-align: center;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-left: 0; margin-right: 0; text-align: center;
  }

  .hero-bio { max-width: 88vw; text-align: center; }

  .hero-visual { width: 100%; height: 0; }

  .hero-cards-img {
    width: 90vw;
    right: 0;
    left: 0;
    margin: 0 auto;
    bottom: -40%;
  }

  .hero-text {
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
    margin-top: 70px;
  }

  .social-links { justify-content: center; margin: 28px auto 0; }

  .case-study-group { gap: 20px; }
  .case-study-info-block { padding: 0; }

  .sandbox-container { flex-direction: column; }
  .sandbox-content-card { padding: 36px 32px; min-height: 200px; }

  .site-footer { margin: 0 8px 8px; border-radius: 20px 20px 14px 14px; }
  .footer-hook-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hook-text { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links-group { flex-wrap: wrap; justify-content: center; gap: 18px; }
}