/* ══════════════════════════════════════════════════════════
   Rifqi Aditya Heryadi — Portfolio
   styles.css
   ══════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:      #0A0A0A;
  --surface: #111111;
  --card:    #141414;
  --lime:    #C6F135;
  --purple:  #7B2FBE;
  --white:   #FFFFFF;
  --gray:    #888888;
  --muted:   #3A3A3A;
  --border:  rgba(255,255,255,0.07);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* iOS ignores body-only overflow-x: hidden */
}
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--bg); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

/* ── Utilities ────────────────────────────────────────── */
.lime   { color: var(--lime); }
.purple { color: var(--purple); }
.gray   { color: var(--gray); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }


/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 0 56px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: normal;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.solid {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--lime);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--lime);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }


/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  max-width: 100%;
}

/* Subtle noise texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* Lime glow top-left */
#hero::after {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(198,241,53,0.055) 0%, transparent 60%);
  pointer-events: none;
}

/* Role label — above name, Brandin Hall style */
.hero-top {
  padding: 100px 56px 0;
  position: relative;
  z-index: 1;
}

.hero-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-role::before {
  display : none;
  content: '';
  width: 32px;
  height: 1px;
  background: var(--lime);
  flex-shrink: 0;
}

/* Portrait — Brandin Hall style: right-anchored, bleeds bottom, dark-blended */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 42%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-photo-wrap::before {
  /* Left fade — blends photo into dark bg */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 50%);
  z-index: 1;
}
.hero-photo-wrap::after {
  /* Bottom fade */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
  z-index: 1;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.1) brightness(0.6);
  display: block;
}

/* Lime tint overlay on photo */
.hero-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198,241,53,0.06) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* Massive name — bleeds right intentionally */
.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.92;
  color: var(--white);
  letter-spacing: -0.04em;
  position: relative;
  max-width: 54vw;
}

.hero-name .line-2 { display: block; }
.hero-name .accent-dot { color: var(--lime); }

/* Bottom metadata bar — pinned to bottom, Brandin Hall style */
.hero-bottom {
  padding: 0 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.hero-meta { display: flex; gap: 56px; }
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--lime);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); transform: translateY(-1px); }

/* Vertical scroll indicator */
.hero-scroll-hint {
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 48px;
  background: var(--muted);
}


/* ══════════════════════════════════════════════════════════
   SECTION SHELL
   ══════════════════════════════════════════════════════════ */
.section {
  padding: 140px 56px;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 80px;
}
.section-counter {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}


/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-statement {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.about-bio {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 40px;
}
.about-bio strong { color: var(--white); font-weight: 500; }

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-link:hover { color: var(--lime); border-color: rgba(198,241,53,0.3); }
.about-link span { font-size: 15px; }

/* Stats grid — right side */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stat-box {
  background: var(--bg);
  padding: 36px 32px;
}
.stat-box-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stat-box-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Skills below stats */
.skills-wrap {
  margin-top: 1px;
  background: var(--border);
}
.skills-inner {
  background: var(--bg);
  padding: 32px;
}
.skills-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid;
}
.chip.lime   { color: var(--lime);   background: rgba(198,241,53,0.08);  border-color: rgba(198,241,53,0.25); }
.chip.purple { color: #b47de8;       background: rgba(123,47,190,0.08);  border-color: rgba(123,47,190,0.25); }
.chip.muted  { color: var(--gray);   background: transparent;             border-color: var(--muted); }


/* ══════════════════════════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════════════════════════ */
#experience { background: var(--surface); }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.exp-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-col-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.exp-list { display: flex; flex-direction: column; }

.exp-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; }

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.exp-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.exp-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  margin-top: 2px;
}
.exp-type.fulltime { color: var(--lime);   background: rgba(198,241,53,0.1);  border: 1px solid rgba(198,241,53,0.2); }
.exp-type.parttime { color: #b47de8;       background: rgba(123,47,190,0.1);  border: 1px solid rgba(123,47,190,0.2); }

.exp-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 4px;
}
.exp-period {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.exp-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
}


/* ══════════════════════════════════════════════════════════
   SELECTED WORK
   ══════════════════════════════════════════════════════════ */
#projects { background: var(--bg); }

.work-grid { display: flex; flex-direction: column; }

.work-item {
  display: grid;
  grid-template-columns: 58% 1fr;
  align-items: center;
  gap: 72px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.work-item:first-child { border-top: 1px solid var(--border); }

/* Flip — image on the right */
.work-item.flip { grid-template-columns: 1fr 58%; }
.work-item.flip .work-visual { order: 2; }
.work-item.flip .work-body   { order: 1; }

/* Image area */
.work-visual {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.work-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

/* Dot-grid texture */
.work-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Large watermark number */
.work-placeholder::before {
  content: attr(data-num);
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(120px, 16vw, 220px);
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.06em;
  line-height: 1;
  bottom: -20px;
  right: 4px;
  pointer-events: none;
  z-index: 1;
}

.work-item:hover .work-placeholder { transform: scale(1.02); }

/* Accent overlay on hover */
.work-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--item-accent, var(--lime));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 3;
}
.work-item:hover .work-visual::after { opacity: 0.15; }

/* Project image (swap placeholder out when ready) */
.work-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.ph-label {
  position: relative;
  z-index: 4;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.1);
  padding: 10px 18px;
}

/* Text body */
.work-body { display: flex; flex-direction: column; }

.work-index {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

.work-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.work-item:hover .work-name { color: var(--item-accent, var(--lime)); }

.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.project-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.project-tag.lime   { color: var(--lime);  background: rgba(198,241,53,0.08);  border: 1px solid rgba(198,241,53,0.2); }
.project-tag.purple { color: #b47de8;      background: rgba(123,47,190,0.08);  border: 1px solid rgba(123,47,190,0.2); }
.project-tag.muted  { color: var(--gray);  background: transparent;             border: 1px solid var(--muted); }

.work-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 36px;
}

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s, gap 0.25s cubic-bezier(0.16,1,0.3,1);
  width: fit-content;
}
.work-cta .arrow { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.work-cta:hover { color: var(--item-accent, var(--lime)); border-color: var(--item-accent, var(--lime)); gap: 16px; }
.work-cta:hover .arrow { transform: translate(3px, -3px); }


/* ══════════════════════════════════════════════════════════
   CLIENTS MARQUEE
   ══════════════════════════════════════════════════════════ */
.clients-band {
  padding: 52px 0 56px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* Edge fade masks */
.clients-band::before,
.clients-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-band::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}
.clients-band::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

.clients-band-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.clients-track-wrap { overflow: hidden; }

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clients-scroll 30s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 56px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
}

/* Vertical pipe divider between logos */
.client-logo + .client-logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--border);
}

.client-logo img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  /* Force all logos to white so they work on the dark surface */
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  /* Fallback alt-text styling if the image fails to load */
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}
.client-logo:hover img { opacity: 0.9; }


/* ══════════════════════════════════════════════════════════
   UX CHALLENGES
   ══════════════════════════════════════════════════════════ */
#challenges { background: var(--surface); }

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.challenge-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.challenge-card:hover { transform: translateY(-8px); }
.challenge-card.c-lime:hover   { border-color: rgba(198,241,53,0.35); }
.challenge-card.c-purple:hover { border-color: rgba(123,47,190,0.5); }

/* Slide preview */
.slide-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Graph-paper grid */
.slide-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Faint index watermark */
.slide-preview::after {
  content: attr(data-num);
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 88px;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.05em;
  line-height: 1;
  bottom: -10px;
  right: 6px;
  pointer-events: none;
}

/* Google Slides format badge */
.slide-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 2px;
}

/* Slide thumbnail image */
.slide-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Keep badge and accent-bar above the image */
.slide-badge       { z-index: 3; }
.slide-preview .accent-bar { z-index: 3; }

/* Deck icon (shown only when no image is present) */
.deck-icon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.deck-shape {
  width: 44px;
  height: 33px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  position: relative;
}
.deck-shape::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 1.5px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 6px 0 rgba(255,255,255,0.08),
              0 -6px 0 rgba(255,255,255,0.08);
}
.deck-shape::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 8px;
  background: rgba(255,255,255,0.12);
}
.deck-label {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

/* Accent bar */
.slide-preview .accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.challenge-card.c-lime  .accent-bar { background: var(--lime); }
.challenge-card.c-purple .accent-bar { background: var(--purple); }
.challenge-card:hover .accent-bar { opacity: 1; }

/* Card body */
.challenge-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.challenge-kicker {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.challenge-kicker::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.c-lime  .challenge-kicker { color: var(--lime); }
.c-purple .challenge-kicker { color: #b47de8; }

.challenge-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.c-lime:hover  .challenge-title { color: var(--lime); }
.c-purple:hover .challenge-title { color: #b47de8; }

.challenge-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.challenge-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s cubic-bezier(0.16,1,0.3,1);
}
.c-lime:hover  .challenge-cta { color: var(--lime); gap: 12px; }
.c-purple:hover .challenge-cta { color: #b47de8; gap: 12px; }
.challenge-cta .arrow { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1); }
.challenge-card:hover .challenge-cta .arrow { transform: translate(2px, -2px); }


/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg);
  padding: 140px 56px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(123,47,190,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.contact-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 72px;
  white-space: nowrap;
  overflow: hidden;
}
.contact-headline .hl {
  /* Indaco-style: accent block behind one word */
  background: var(--lime);
  color: var(--bg);
  padding: 0 12px;
  display: inline;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

.contact-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 420px;
}

.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s;
}
.contact-link-row:first-child { border-top: 1px solid var(--border); }
.contact-link-row:hover { padding-left: 8px; }

.contact-link-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-link-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.contact-link-type.lime   { color: var(--lime); }
.contact-link-type.purple { color: #b47de8; }

.contact-link-val {
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
}
.contact-link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s, transform 0.25s;
}
.contact-link-row:hover .contact-link-arrow { color: var(--lime); transform: translate(4px, -4px); }


/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section          { padding: 100px 40px; }
  nav               { padding: 0 40px; }
  #contact          { padding: 100px 40px 0; }
  footer            { padding: 24px 40px; }
  .hero-top         { padding: 90px 40px 0; }
  .hero-bottom      { padding: 0 40px 40px; }
  .hero-scroll-hint { display: none; }
  /* Name: rein in slightly so it never clips on tablet */
  .hero-name        { max-width: 70vw; }
  .about-grid       { grid-template-columns: 1fr; }
  .exp-grid         { grid-template-columns: 1fr; }
  /* Work: looser split at tablet so image + text breathe */
  .work-item        { grid-template-columns: 52% 1fr; gap: 48px; }
  .work-item.flip   { grid-template-columns: 1fr 52%; }
  .challenges-grid  { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contact-grid     { grid-template-columns: 1fr; gap: 48px; }
  .contact-headline { font-size: clamp(48px, 10vw, 96px); }
}

@media (max-width: 768px) {
  .challenges-grid  { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  /* Hard stop — nothing escapes the viewport horizontally */
  html, body        { overflow-x: clip; }
  section, nav, footer, .clients-band { max-width: 100vw; overflow-x: hidden; }

  nav               { padding: 0 24px; }
  .nav-links        { display: none; }
  .section          { padding: 72px 24px; }
  .section-title    {font-size: clamp(32px, 7vw, 40px);}
  .work-name        {font-size: clamp(16px, 7vw, 20px);}
  #contact          { padding: 72px 24px 0; }
  footer            { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }

  /* ── Hero: name anchored above meta at bottom ───────── */
  #hero {
    height: 100vh;
    min-height: 620px;
    /* Push all content to the bottom; photo fills the top as bg */
    justify-content: flex-end;
  }

  /* Role label is redundant when name is at the bottom — hide it */
  .hero-role        { display: flex; font-size: 9px; letter-spacing: 2px;}

  /* hero-top no longer needs top padding — it sits just above hero-bottom */
  .hero-top         { padding: 0 24px 0; }

  .hero-name {
    font-size: clamp(30px, 9vw, 48px);
    max-width: 100%;
    line-height: 0.88;
    padding-bottom: 20px; /* breathing room before the meta */
  }

  /* Photo: full-width background.
     Strong bottom-up fade keeps the lower text area legible. */
  .hero-photo-wrap  { width: 100%; }
  .hero-photo-wrap::before {
    background: linear-gradient(to bottom, transparent 20%, transparent 50%, var(--bg) 90%);
  }
  .hero-photo-wrap::after {
    background: linear-gradient(to top, var(--bg) 35%, transparent 65%);
  }

  /* Bottom bar: stack meta then CTAs, flush to bottom */
  .hero-bottom {
    padding: 0 24px 40px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-meta  { flex-wrap: wrap; gap: 16px 28px; }

  /* CTAs: side-by-side, full width */
  .hero-ctas  { width: 100%; }
  .btn-primary,
  .btn-ghost  { flex: 1; justify-content: center; padding: 13px 14px; font-size: 13px; }

  /* ── About ──────────────────────────────────────────── */
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .stat-box       { padding: 24px 20px; }
  .stat-box-num   { font-size: 40px; }

  /* ── Section headers ────────────────────────────────── */
  .section-header { gap: 12px; margin-bottom: 48px; }

  /* ── Work ───────────────────────────────────────────── */
  .work-item,
  .work-item.flip { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .work-item.flip .work-visual { order: 1; }
  .work-item.flip .work-body   { order: 2; }
  .work-desc      { max-width: 100%; }

  /* ── Contact ────────────────────────────────────────── */
  .contact-headline {
    white-space: normal;
    font-size: clamp(38px, 12vw, 64px);
    margin-bottom: 48px;
  }
  .contact-grid   { padding-bottom: 60px; gap: 40px; }
}
