/* ── VIEW TRANSITIONS ── */
@view-transition { navigation: auto; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }

/* ── THEME ── */
:root {
  --bg:         #1f1b24;
  --surface:    #272230;
  --surface-2:  #2e2a38;
  --accent:     #e8825a;
  --accent-dim: rgba(232,130,90,0.13);
  --text:       #f0ede8;
  --text-mid:   #9a9188;
  --text-dim:   rgba(240,237,232,0.32);
  --border:     rgba(240,237,232,0.07);
  --border-mid: rgba(240,237,232,0.13);
  --header-bg:  rgba(31,27,36,0.82);
  --nav-hover:  rgba(240,237,232,0.07);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg:         #faf8f4;
  --surface:    #f2ede6;
  --surface-2:  #e8e2d9;
  --accent:     #d4694a;
  --accent-dim: rgba(212,105,74,0.1);
  --text:       #1c1917;
  --text-mid:   #6b6158;
  --text-dim:   rgba(28,25,23,0.4);
  --border:     rgba(28,25,23,0.08);
  --border-mid: rgba(28,25,23,0.14);
  --header-bg:  rgba(250,248,244,0.88);
  --nav-hover:  rgba(28,25,23,0.06);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── FLUID CANVAS ── */
#canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.40;
}

header, main, section, footer, .about-hero, .about-section {
  position: relative;
  z-index: 1;
}

/* ── NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  pointer-events: none;
}

.nav-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  transform: translate(6px, 4px);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: all;
  transition: color 0.2s;
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  pointer-events: all;
}

[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--text); font-weight: 600; }

.theme-toggle {
  justify-self: end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer;
  color: var(--text-mid);
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--text); background: rgba(255,255,255,0.13); }
[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.1); }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* ── HERO ── */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 0;
  min-height: 73vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-left: var(--headline-shift);
  margin-bottom: 0;
  opacity: 0;
  color: var(--text);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-headline em {
  font-style: normal;
}


/* ── FAN CARDS ── */
.fan-wrap {
  position: relative;
  height: 280px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.fan-card {
  width: 176px;
  border-radius: 18px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

.fan-card:hover {
  z-index: 10;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.fan-card:nth-child(1) { left: calc(50% - 296px); transform: rotate(-10deg) translateY(32px); }
.fan-card:nth-child(2) { left: calc(50% - 176px); transform: rotate(-5deg)  translateY(16px); }
.fan-card:nth-child(3) { left: calc(50% - 88px);  transform: rotate(0deg)   translateY(0);    z-index: 5; }
.fan-card:nth-child(4) { left: calc(50% + 8px);   transform: rotate(5deg)   translateY(16px); }
.fan-card:nth-child(5) { left: calc(50% + 120px); transform: rotate(10deg)  translateY(32px); }

.fan-card:nth-child(1):hover { transform: rotate(-10deg) translateY(16px); }
.fan-card:nth-child(2):hover { transform: rotate(-5deg)  translateY(4px);  }
.fan-card:nth-child(3):hover { transform: rotate(0deg)   translateY(-8px); }
.fan-card:nth-child(4):hover { transform: rotate(5deg)   translateY(4px);  }
.fan-card:nth-child(5):hover { transform: rotate(10deg)  translateY(16px); }

.fan-inner {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fc-a { background: linear-gradient(155deg, #0f1f30, #1a3a52); }
.fc-b { background: linear-gradient(155deg, #1a0d2e, #35185a); }
.fc-c { background: linear-gradient(155deg, #0c1c0c, #1a3620); }
.fc-d { background: linear-gradient(155deg, #2a180a, #4a2c10); }
.fc-e { background: linear-gradient(155deg, #16162e, #0d0d3a); }

/* mini UI inside cards */
.ui {
  width: 88%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ul { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.ul.w3 { width: 30%; } .ul.w4 { width: 40%; } .ul.w5 { width: 50%; }
.ul.w6 { width: 60%; } .ul.w7 { width: 70%; } .ul.w8 { width: 82%; }
.ul.blue   { background: #3b82f6; }
.ul.purple { background: #a855f7; }
.ul.green  { background: #22c55e; }
.ul.amber  { background: #f59e0b; }
.ul.teal   { background: #14b8a6; }

.ub { height: 28px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); }
.ur { display: flex; align-items: center; gap: 5px; }
.ud { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); flex-shrink: 0; }

/* ── SECTIONS ── */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* ── CASE STUDY CARDS ── */
.cs-card {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

.cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cs-visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px 48px;
  overflow: hidden;
}

.csv-blue   { background: linear-gradient(140deg, #e4edf8, #ccdcf2); }
.csv-purple { background: linear-gradient(140deg, #18122a, #28184a); }
.csv-green  { background: linear-gradient(140deg, #e8f4ea, #cfe8d4); }

/* mockups */
.m-phone {
  width: 110px;
  flex-shrink: 0;
  border-radius: 20px;
  border: 5px solid #1e1e1e;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19;
}

.m-phone.light { background: #fff; border-color: #e0e0e0; }

.m-desk {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  background: #111;
}

.m-desk.light { background: #fff; border-color: #e0e0e0; }

.m-bar {
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
}

.m-bar.dk { background: #1e1e1e; }
.m-bar.lt { background: #f2f2f2; border-bottom: 1px solid #e8e8e8; }

.mdot { width: 7px; height: 7px; border-radius: 50%; }

.m-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-body.dk { background: #161616; }
.m-body.lt { background: #fff; }

.ml { height: 5px; border-radius: 3px; }
.ml.dk { background: rgba(255, 255, 255, 0.09); }
.ml.lt { background: rgba(0, 0, 0, 0.08); }
.ml.acc-b { background: #3b82f6; }
.ml.acc-p { background: #a855f7; }
.ml.acc-g { background: #22c55e; }
.ml.w35 { width: 35%; } .ml.w50 { width: 50%; }
.ml.w65 { width: 65%; } .ml.w80 { width: 80%; }

.mb { border-radius: 5px; }

.cs-footer {
  padding: 18px 24px 20px;
  background: var(--card-bg);
  transition: background 0.3s;
}

.cs-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: -0.01em;
  color: var(--card-text);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.cs-sub {
  font-size: 13px;
  color: var(--card-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.cs-arrow {
  font-size: 16px;
  transition: transform 0.25s;
}

.cs-card:hover .cs-arrow { transform: translate(3px, -3px); }

/* ── EXPERIENCE ── */
.exp-list { border-top: 1px solid var(--border); }

.exp-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.exp-list:hover .exp-row        { opacity: 0.4; }
.exp-list:hover .exp-row:hover  { opacity: 1;   }

.exp-year { font-size: 13px; color: var(--text-dim); padding-top: 2px; }
.exp-role { font-size: 14.5px; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.exp-desc { font-size: 13px; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* ── FOOTER ── */
footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left { font-size: 13px; color: var(--text-dim); }

.footer-links { display: flex; gap: 24px; }

.footer-link {
  font-size: 13.5px;
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

.footer-link sup { font-size: 10px; opacity: 0.6; }

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
.hero-role {
  order: -1;
  font-family: 'Poppins', sans-serif;
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 12px;
  margin-left: var(--headline-shift);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--text-mid);
}

.hero-dim {
  color: var(--text-mid);
}

@media (max-width: 700px) {
  header { padding: 10px 16px; }
  nav { gap: 0; }
  .hero { padding: 60px 20px 0; }
  .fan-wrap { height: 220px; }
  .fan-card { width: 130px; }
  .fan-card:nth-child(1) { left: calc(50% - 218px); }
  .fan-card:nth-child(2) { left: calc(50% - 130px); }
  .fan-card:nth-child(3) { left: calc(50% - 65px);  }
  .fan-card:nth-child(4) { left: calc(50% + 4px);   }
  .fan-card:nth-child(5) { left: calc(50% + 88px);  }
  .section { padding: 60px 20px; }
  .cs-visual { flex-direction: column; aspect-ratio: 4/3; padding: 24px; }
  .m-phone { width: 72px; }
  .exp-row { grid-template-columns: 1fr; gap: 5px; }
  footer { flex-direction: column; gap: 18px; padding: 24px 20px; }
}
