/* ─── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body.home .pill-nav-wrap { display: none; }

body.home {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #23124b;
  overflow-x: hidden;
}

/* ─── Shared container width ─────────────────────────────── */
.header-content,
.work-title-wrap,
.cards-row,
.about-row,
.connect-row,
.home-footer p {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── HEADER SECTION ─────────────────────────────────────── */
.section-header {
  background: #f5f4ff;
  position: relative;
  overflow: hidden;
}

.header-bg-white {
  background: #ffffff;
  border-radius: 0 0 0 144px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.header-glow {
  position: absolute;
  bottom: -120px;
  left: 160px;
  width: 459px;
  height: 459px;
  pointer-events: none;
  z-index: 0;
}
.header-glow img { width: 100%; height: 100%; }


/* Headline */
.header-content {
  padding-top: 0;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Hero Name ──────────────────────────────────────────── */
.hero-name {
  position: relative;
  width: 100%;
  max-width: 524px;
  aspect-ratio: 524 / 250;
  margin-bottom: 24px;
}

.hero-guideline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateY(100px);
}

.hero-char {
  position: absolute;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.hero-char:hover {
  transform: translateY(-12px);
}

.hero-char img {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: multiply;
}

.char-S  { left: 2.29%;  top: 60%; width: 9.54%; height: 30%; }
.char-h  { left: 11.83%; top: 60%; width: 9.54%; height: 30%; }
.char-e  { left: 21.37%; top: 70%; width: 9.54%; height: 20%; }
.char-n1 { left: 30.92%; top: 70%; width: 9.54%; height: 20%; }
.char-g1 { left: 40.46%; top: 70%; width: 9.54%; height: 30%; }
.char-L  { left: 54.77%; top: 60%;   width: 11.45%; height: 30%; }
.char-i  { left: 66.03%; top: 62.4%; width: 3.05%;  height: 27.6%; }
.char-a  { left: 69.08%; top: 70%;   width: 9.54%;  height: 20%; }
.char-n2 { left: 78.63%; top: 70%;   width: 9.54%;  height: 20%; }
.char-g2 { left: 88.17%; top: 70%;   width: 9.54%;  height: 30%; }

.header-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 300;
  line-height: normal;
  letter-spacing: 0;
  color: #23124b;
  opacity: 0.8;
  text-align: center;
  margin: 16px 0 0;
}

.headline-bold {
  font-weight: 800;
}

.header-sub {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(35, 18, 75, 0.5);
  margin: 0;
}

/* ─── WORK SECTION ───────────────────────────────────────── */
.section-work {
  background: #ffffff;
  position: relative;
}

.work-bg-purple {
  background: linear-gradient(180deg, #F5F4FF 0%, #FFF 81.58%);
  border-radius: 0 144px 0 0;
  padding: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.work-glow-left {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 430px));
  top: 40px;
  width: 918px;
  height: 918px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
.work-glow-left img { width: 100%; height: 100%; }

.work-glow-right {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% + 485px));
  bottom: 40px;
  width: 964px;
  height: 964px;
  pointer-events: none;
  opacity: 0.6;
}
.work-glow-right img { width: 100%; height: 100%; }

.work-title-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.work-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

/* ─── Project Cards ──────────────────────────────────────── */
.cards-row {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.pcard {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  overflow: hidden;
  text-decoration: none;
  color: #23124b;
  position: relative;
  height: 576px;
  box-shadow: 10px 20px 50px 0 rgba(121, 104, 255, 0.05),
              -2px -2px 2px 0 rgba(255, 255, 255, 0.25) inset,
              1px 1px 1px 0 #fff inset;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
}

.pcard:hover,
.pcard:focus {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 10px 28px 40px rgba(121, 104, 255, 0.14),
              -2px -2px 2px 0 rgba(255, 255, 255, 0.25) inset,
              1px 1px 1px 0 #fff inset;
}

.pcard-tag {
  position: absolute;
  top: 48px;
  left: 40px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(35, 18, 75, 0.7);
  margin: 0;
  z-index: 2;
}

.pcard-title {
  position: absolute;
  top: 76px;
  left: 40px;
  right: 40px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  color: #23124b;
  margin: 0;
  z-index: 2;
}

.pcard-img-wrap {
  position: absolute;
  top: 178px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* ── Card image: fixed 490px, anchored bottom-right ── */
.pcard-img--bottom-right img {
  position: absolute;
  width: 490px;
  height: auto;
  right: 0;
  bottom: 0;
  display: block;
}

/* ─── ABOUT SECTION ──────────────────────────────────────── */
.section-about {
  background: #f5f4ff;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* hello graphic container */
.about-hello-wrap {
  position: relative;
  width: 232px;
  height: 75px;
  margin-bottom: 48px;
}

.about-guideline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(100px);
  width: 232px;
  height: 75px;
  pointer-events: none;
  opacity: 0.35;
}

.about-hello {
  position: relative;
  width: 232px;
  height: 75px;
}

/* all hello pieces use mix-blend-mode: multiply */
.hello-piece {
  position: absolute;
  mix-blend-mode: multiply;
  display: block;
}

/* h */
.hello-h-bar   { left: 16px; top: 0;    width: 16px; height: 75px; }
.hello-h-circle{ left: 16px; top: 25px; width: 50px; height: 50px; }
/* e */
.hello-e-union { left: 67px; top: 25px; width: 50px; height: 50px; }
.hello-e-inner { left: 82px; top: 40px; width: 20px; height: 10px; transform: rotate(180deg); }
/* l1 */
.hello-l1-rect { left: 120px; top: 0; width: 16px; height: 75px; }
.hello-l1-curve{ left: 112px; top: 0; width: 24px; height: 24px; }
/* l2 */
.hello-l2-rect { left: 146px; top: 0; width: 16px; height: 75px; }
.hello-l2-curve{ left: 138px; top: 0; width: 24px; height: 24px; }
/* o */
.hello-o-outer { left: 166px; top: 25px; width: 50px; height: 50px; }
.hello-o-inner { left: 180px; top: 39px; width: 24px; height: 24px; }
/* dot */
.hello-dot     { left: 216px; top: 59px; width: 16px; height: 16px; }

.about-bio {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3125;
  letter-spacing: -0.03em;
  color: rgba(35, 18, 75, 0.8);
  margin: 0 0 56px;
  max-width: 680px;
}

/* Connect buttons */
.connect-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: center;
}

.connect-btn {
  position: relative;
  display: block;
  text-decoration: none;
}

.connect-btn-shadow {
  position: absolute;
  left: calc(50% + 32px);
  top: calc(50% - 24px);
  transform: translate(-50%, -20%);
  width: 160%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.connect-btn:hover .connect-btn-shadow {
  transform: translate(-50%, calc(-20% + 16px));
}

.connect-btn-img {
  position: relative;
  display: block;
  height: 72px;
  width: auto;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.connect-btn:hover .connect-btn-img { transform: translateY(-6px); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.home-footer {
  background: #f5f4fe;
  padding: 40px 0;
  text-align: center;
}

.home-footer p {
  margin: 0 auto;
  text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .header-bg-white { border-radius: 0 0 0 100px; padding-bottom: 60px; }
  .work-bg-purple { border-radius: 0 100px 100px 0; padding: 60px 0 80px; }
  .cards-row { gap: 16px; flex-direction: column; align-items: center; }
  .pcard { flex: none; width: 490px; height: 500px; }
  .pcard-img--bottom-right img { width: auto; height: 100%; }
  .header-headline { font-size: clamp(14px, 1.8vw, 24px); }
}

@media (max-width: 600px) {
  .home-nav,
  .header-content,
  .work-title-wrap,
  .cards-row,
  .home-footer p { padding-left: 20px; padding-right: 20px; }
  .about-inner { padding: 60px 20px 80px; }
  .header-bg-white { border-radius: 0 0 0 60px; padding-bottom: 48px; }
  .work-bg-purple { border-radius: 0 60px 60px 0; padding: 48px 0 60px; }
  .cards-row { flex-direction: column; }
  .pcard { flex: none; width: 100%; height: 420px; }
  .pcard-tag { top: 32px; left: 28px; font-size: 12px; }
  .pcard-title { font-size: 26px; top: 60px; left: 28px; right: 28px; }
  .pcard-img-wrap { top: 170px; }
  .pcard-img--bottom-right img { width: 80%; }
  .home-nav { padding-top: 16px; padding-bottom: 16px; }
  .nav-name { display: none; }
  .work-title { font-size: clamp(28px, 7vw, 48px); }
  .about-bio { font-size: 20px; margin-bottom: 40px; }
  .connect-buttons { gap: 16px; flex-direction: column; align-items: center; }
  .connect-btn img { height: 56px; }
}
