/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --ink:        #0D1117;
  --ink-dim:    #6B7280;
  --surface:    #FFFFFF;
  --panel:      #F4F5F6;
  --dark:       #0F1B2D;
  --navy:       #1A3A5C;
  --blue:       #2563AE;
  --sky:        #5BA8D9;
  --lime:       #C8E84A;
  --lime-dark:  #A8C832;
  --border-l:   #E5E7EB;
  --radius:     12px;
  --radius-lg:  18px;

  /* ── motion tokens ── */
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-spring:   cubic-bezier(.34,1.56,.64,1);
  --ease-gentle:   cubic-bezier(.25,.46,.45,.94);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-l);
  transition: box-shadow .3s var(--ease-out-expo);
}
nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-logo span {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-dim);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s;
}

/* Lime underline — plain links only, NOT .nav-cta */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--lime-dark);
  border-radius: 2px;
  transition: width .25s var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover        { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-active {
  font-weight: 600;
  color: var(--ink) !important;
}
.nav-active:not(.nav-cta)::after { width: 100% !important; }

/* Contact CTA */
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: #d0d0d0;
  color: #000000 !important;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #e1e1e1; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out-expo), opacity .2s;
}

/* Hamburger → X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-l);
  padding: 20px 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform .25s var(--ease-out-expo), opacity .2s;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 16px;
  color: var(--ink-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-l);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu a:last-child { border-bottom: none; }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 56px;
}

/* ─── HERO LEFT (dark carousel panel) ───────────────── */
.hero-left {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(37,99,174,.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(26,58,92,.5)  0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Carousel ─────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;

  /* ── Click routing fix ────────────────────────────────
     All three slides are stacked on top of each other.
     Without this, the last slide in the DOM swallows every
     click. Only the active slide should be clickable.
     ─────────────────────────────────────────────────── */
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Arrow buttons ───────────────────────────────────── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .25s var(--ease-spring), opacity .2s;
  backdrop-filter: blur(6px);
  opacity: .7;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* ── Dot indicators ──────────────────────────────────── */
.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 10;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition:
    width          .4s var(--ease-out-expo),
    border-radius  .4s var(--ease-out-expo),
    background     .35s ease;
}
.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,.5);
}
.carousel-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--lime);
}

/* ── Slide card ───────────────────────────────────────── */
.slide-card {
  width: 100%;
  max-width: 432px; /* mobile/tablet base — 10% smaller than original 480 */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s;
}
.slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.slide-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.slide-card-dots { display: flex; gap: 6px; }
.slide-card-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.slide-card-title {
  font-size: 11px;
  color: rgb(255, 255, 255);
  font-family: 'Noto Sans', sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.slide-card-body { padding: 22px; }

/* ── Journey Map ──────────────────────────────────────── */
.journey-map { display: flex; flex-direction: column; gap: 14px; }
.jm-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sky);
  font-weight: 600;
}
.jm-phases { display: flex; }
.jm-phase {
  flex: 1;
  padding: 9px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-right: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.45);
}
.jm-phase:last-child { border-right: none; }
.jm-phase.active-phase { color: var(--lime); background: rgba(200,232,74,.08); }
.jm-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.jm-row  { display: flex; align-items: center; gap: 8px; }
.jm-row-label { width: 68px; font-size: 10px; color: rgba(255,255,255,.4); flex-shrink: 0; }
.jm-dots { flex: 1; display: flex; gap: 4px; }
.jm-dot  { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); }
.jm-dot.high { background: var(--lime); opacity: .9; }
.jm-dot.mid  { background: var(--sky);  opacity: .7; }
.jm-dot.low  { background: rgba(255,255,255,.15); }
.emotion-line { width: 100%; height: 44px; margin-top: 2px; }
.emotion-line svg { width: 100%; height: 100%; }

/* ── Research Stats ───────────────────────────────────── */
.research-stats { display: flex; flex-direction: column; gap: 18px; }
.stats-row { display: flex; gap: 12px; }
.stat-box {
  flex: 1;
  padding: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, transform .25s var(--ease-spring);
}
.stat-box:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.stat-num {
  font-family: 'Noto Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 5px; }
.findings-list { display: flex; flex-direction: column; gap: 7px; }
.finding-item {
  padding: 9px 12px;
  background: rgba(255,255,255,.04);
  border-left: 2px solid var(--sky);
  border-radius: 4px;
  transition: background .2s, border-color .2s;
}
.finding-item:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--lime);
}
.finding-text { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.4; }

/* ── Affinity Map ─────────────────────────────────────── */
.affinity-map { display: flex; flex-direction: column; gap: 12px; }
.affinity-cluster {
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.affinity-cluster:hover { background: rgba(255,255,255,.03); }
.cluster-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}
.cluster-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: background .15s;
}
.tag:hover { background: rgba(255,255,255,.18); }
.cluster-blue  { border-color: rgba(91,168,217,.3); }
.cluster-blue  .cluster-title { color: var(--sky); }
.cluster-lime  { border-color: rgba(200,232,74,.3); }
.cluster-lime  .cluster-title { color: var(--lime); }
.cluster-white { border-color: rgba(255,255,255,.15); }
.cluster-white .cluster-title { color: rgba(255,255,255,.65); }

/* ── Carousel link wrapper ────────────────────────────────
   Wraps the <img> so the image itself is clickable.
   display: block and line-height: 0 prevent inline spacing
   artifacts below the image.
   ─────────────────────────────────────────────────────────── */
.carousel-link {
  display: block;
  width: 100%;
  line-height: 0;
  cursor: pointer;
  transition: opacity .2s var(--ease-out-expo);
}
.carousel-link:hover { opacity: .92; }

/* ── Carousel image ───────────────────────────────────────
   width: 100% fills the card width.
   aspect-ratio: 16/9 locks a landscape shape.
   object-fit: cover crops neatly without distorting.
   overflow: hidden on .slide-card clips to rounded corners.
   ─────────────────────────────────────────────────────────── */
.carousel-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ─── HERO RIGHT ─────────────────────────────────────── */
.hero-right {
  padding: clamp(10px, 2vh, 28px) 48px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  height: calc(100vh - 56px);
}

/* Top block */
.hero-top-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: clamp(12px, 2vh, 24px);
}
.hero-top-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
}

/* Identity row */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 2.2vh, 28px);
}
.avatar {
  width: clamp(46px, 5.5vh, 64px);
  height: clamp(46px, 5.5vh, 64px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.2vh, 22px);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(200,232,74,.25);
  transition: box-shadow .25s;
}
.avatar:hover { box-shadow: 0 0 0 4px rgba(200,232,74,.5); }

.identity-name  { font-size: clamp(16px, 2vh, 20px); font-weight: 600; color: var(--ink); line-height: 1.2; }
.identity-role  { font-size: clamp(14px, 1.75vh, 18px); color: var(--ink-dim); }

/* Headline */
.hero-headline {
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(27px, min(3.5vw, 6.9vh), 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: clamp(9px, 1.25vh, 12px);
}

/* Portrait frame */
.hero-photo-frame {
  width: clamp(120px, 12vw, 158px);
  height: clamp(210px, 27vh, 290px);
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  outline: 3px solid var(--lime);
  outline-offset: 4px;
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  transition: outline-color .25s, box-shadow .25s, transform .25s var(--ease-spring);
  cursor: default;
}
.hero-photo-frame:hover {
  outline-color: var(--lime-dark);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  transform: translateY(-2px);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-photo-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--border-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
}
.hero-photo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-dim);
}
.hero-photo-hint {
  font-size: 10px;
  color: #9CA3AF;
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
}

/* Sub-headline */
.hero-sub {
  font-size: clamp(18px, 2.5vh, 20px);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: clamp(6px, 1vh, 10px);
}

.value-props {
  display: flex;
  line-height: 1.75;
  flex-direction: column;
  gap: clamp(6px, 1vh, 11px);
  margin-bottom: clamp(16px, 2.5vh, 28px);
}
.value-prop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.9vh, 19px);
  color: var(--ink);
}
.check-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── CTA buttons ──────────────────────────────────────── */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2.5vh, 30px);
}
.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--lime);
  color: var(--ink);
  font-size: clamp(22px, 2.5vh, 36px);
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-spring), box-shadow .2s;
  flex: 1;
  justify-content: space-between;
}
.btn-primary:hover {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,200,50,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  padding: 13px 18px;
  border: 1.5px solid var(--border-l);
  border-radius: 10px;
  font-size: clamp(14px, 1.7vh, 17px);
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring);
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--panel);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

/* ── Work thumbnails ──────────────────────────────────── */
.work-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns — UX Research and UX/AI */
  gap: 8px;
  flex: 1;
  min-height: 0;
  margin-bottom: clamp(16px, 3vh, 40px);
}
.thumb {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  transition:
    transform .5s var(--ease-gentle),
    filter     .4s var(--ease-gentle);
  filter: grayscale(1);
}
.thumb:hover .thumb-inner {
  transform: scale(1.06);
  filter: grayscale(0);
}

.thumb-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.96);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  padding: 5px 8px;
  border-radius: 5px;
}

.wv-1 { background-image: url(/img/research.jpg); background-position: center; background-size: cover; }
.wv-2 { background-image: url(/img/design.jpg);   background-position: center; background-size: cover; background-repeat: no-repeat; }
.wv-3 { background-image: url(/img/ai.png);       background-position: center; background-size: cover; }

/* ─── RESPONSIVE — max-width breakpoints (small screens) ─────
   .slide-card is 432px (10% smaller than the 480 original)
   across all these breakpoints via the base rule above.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* photo size already handled by clamp — no override needed */
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { min-height: 56vw; }
  .hero-right { padding: clamp(10px, 2vh, 20px) 36px clamp(20px, 3vh, 40px); }
  .thumb-inner { filter: grayscale(0); }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links,
  .nav-status,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-right { padding: 10px 20px 32px; }
  .hero-top-block { gap: 12px; }
  .hero-headline { font-size: clamp(20px, 5.5vw, 30px); }
  .hero-cta { flex-direction: column; }
  .btn-primary  { flex: none; width: 100%; }
  .btn-secondary { text-align: center; }
  .value-props { display: none; }
}

/* ── Hide carousel prev/next arrows on narrow screens ─────
   Below 715px, the arrows crowd the slide. Dots still work.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 714px) {
  .carousel-dots { display: none; }
}

@media (max-width: 480px) {
  .hero-top-block { grid-template-columns: 1fr; }
  .hero-photo-frame { display: none; }
}

/* ─── DESKTOP ONLY — min-width override ──────────────────────
   Fires ONLY when the viewport is wider than 960px.
   600px × 1.25 = 750px — 25% larger than the previous desktop.
   ──────────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .slide-card { max-width: 750px; }
}
