/* Creative Design page only. */
.latin { font-family: Poppins, Alexandria, sans-serif; }
.d-center { text-align: center; }

/* ===== 1. Opening scene ===== */
.d-hero { height: 930px; background-color: #230b39; background-image: radial-gradient(ellipse at 50% 74%, rgba(142, 48, 214, .75), transparent 55%), linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: auto, 38px 38px, 38px 38px; }
.d-hero .hero-copy { top: 124px; right: 0; left: 0; width: auto; text-align: center; }
.d-hero .crumbs { margin-bottom: 6px; }
.d-hero .eyebrow { font-size: 18px; }
.d-hero .hero-copy h1 { margin: 0; font-size: 48px; }
.d-hero .lead { width: 700px; margin: 0 auto 14px; font-size: 15px; }
.d-actions { display: flex; justify-content: center; align-items: center; gap: 18px; }
.d-actions .btn { height: 50px; }
.d-ghost { display: grid; place-items: center; height: 50px; padding: 0 30px; border-radius: 99px; border: 1.5px solid rgba(220, 180, 255, .55); font-size: 15px; transition: background .25s; }
.d-ghost:hover { background: rgba(170, 100, 235, .25); }

.d-desk.hero-art { left: 50%; top: 438px; width: 1000px; height: 440px; margin-left: -500px; }
.d-float { position: absolute; border-radius: 22px; box-shadow: 0 28px 55px rgba(5, 0, 15, .55); }
.d-art { left: 330px; top: 20px; width: 340px; height: 390px; display: grid; place-items: center; background-color: #3b0f4f; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px); background-size: 20px 20px; border: 1px solid rgba(230, 200, 255, .4); }
.d-tab { position: absolute; top: 12px; left: 16px; font: 500 11px Poppins, sans-serif; color: #d7b8f2; direction: ltr; }
.d-select { position: relative; padding: 18px 24px; border: 1.5px solid #5ec8ff; }
.d-select img { width: 165px; }
.d-select i { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid #2f9fe0; }
.d-select i:nth-of-type(1) { top: -5px; left: -5px; } .d-select i:nth-of-type(2) { top: -5px; right: -5px; }
.d-select i:nth-of-type(3) { bottom: -5px; left: -5px; } .d-select i:nth-of-type(4) { bottom: -5px; right: -5px; }
.d-swatches { right: 55px; top: 55px; display: flex; gap: 8px; padding: 14px; background: #fff; rotate: 5deg; }
.d-swatches span { display: flex; align-items: flex-end; justify-content: center; width: 54px; height: 120px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); }
.d-swatches small { margin-bottom: 7px; padding: 1px 3px; border-radius: 4px; font: 600 8.5px Poppins, sans-serif; color: #2e2e2e; background: rgba(255, 255, 255, .88); }
.d-type { left: 55px; top: 40px; width: 200px; display: grid; justify-items: center; padding: 18px; color: var(--ink); background: #f8f6f1; rotate: -6deg; }
.d-type b { font-size: 54px; line-height: 1.4; }
.d-type em { font: 600 38px/1.3 Poppins, sans-serif; font-style: normal; color: #6a1b9a; }
.d-type span { font: 400 11px Poppins, sans-serif; color: #7d6592; }
.d-curve { left: 90px; top: 275px; width: 220px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.d-curve .guide { stroke: #5ec8ff; stroke-width: 1.5; fill: none; }
.d-curve .stroke { fill: none; stroke: #e5c4ff; stroke-width: 4; stroke-linecap: round; }
.d-curve g { fill: #fff; stroke: #2f9fe0; stroke-width: 1.5; }
.d-tools { right: 100px; top: 275px; display: flex; gap: 10px; padding: 12px; background: #17061f; border: 1px solid rgba(190, 130, 240, .35); }
.d-tools span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #34104f; }
.d-tools span:first-child { background: linear-gradient(135deg, #a52fd0, #641aa6); }
.d-tools svg { width: 24px; height: 24px; color: #fff; }
.d-cursor { position: absolute; left: 610px; top: 300px; width: 46px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.anim .d-float { animation: d-in 1s cubic-bezier(.2, .9, .25, 1) backwards, float 6s ease-in-out infinite; }
.anim .d-art { animation-delay: .5s, 1.5s; }
.anim .d-type { animation-delay: .75s, 2.2s; }
.anim .d-swatches { animation-delay: .9s, 3s; }
.anim .d-curve { animation-delay: 1.05s, 2.6s; }
.anim .d-tools { animation-delay: 1.2s, 3.4s; }
@keyframes d-in { from { opacity: 0; scale: .6; } }
.anim .d-curve .stroke { stroke-dasharray: 300; animation: d-draw 4s ease-in-out 1.4s infinite alternate backwards; }
@keyframes d-draw { from { stroke-dashoffset: 300; } 70%, to { stroke-dashoffset: 0; } }
.anim .d-cursor { animation: d-point 7s ease-in-out infinite; }
@keyframes d-point { 30% { translate: -190px -150px; } 60% { translate: 150px -190px; } 80% { translate: 120px 20px; } }
.d-page { padding-top: 1px; }

/* ===== 2. Brand board ===== */
.d-board { padding: 64px 0 40px; }
.d-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 18px; padding: 0 40px; }
.d-cell { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 24px; box-shadow: 0 16px 34px rgba(70, 20, 120, .16); }
.d-cell > small { position: absolute; right: 16px; bottom: 10px; font-size: 11px; opacity: .85; }
.d-main { grid-column: span 2; grid-row: span 2; color: #fff; background: radial-gradient(circle at 20% 90%, #7b25c4, transparent 55%), #3b0f4f; }
.d-main img { width: 190px; }
.d-light { background: #f8f6f1; border: 1px solid #e6dccf; }
.d-mono { background: #fff; }
.d-light img, .d-mono img { width: 80px; }
.d-icons { grid-column: span 2; gap: 20px; padding-bottom: 20px; background: #fff; }
.d-icons span { display: grid; place-items: center; width: 100px; height: 100px; background: linear-gradient(140deg, #4e1670, #2a0845); border-radius: 26px; transition: translate .3s, rotate .3s; }
.d-icons span:nth-child(2) { background: #f3ebe0; border-radius: 50%; }
.d-icons span:nth-child(3) { background: #6a1b9a; border-radius: 50%; }
.d-icons span:hover { translate: 0 -6px; rotate: -5deg; }
.d-icons img { width: 48px; }
.d-colors { grid-column: span 4; grid-row: span 1; align-items: stretch; }
.d-colors button { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding-bottom: 20px; border: 0; cursor: pointer; color: #fff; font-family: Alexandria, sans-serif; transition: flex .35s ease; }
.d-colors button:hover, .d-colors button:focus-visible { flex: 1.8; }
.d-colors button.dark-text { color: #2e2e2e; }
.d-colors b { font-size: 13px; font-weight: 600; }
.d-colors span { font: 500 12px Poppins, sans-serif; opacity: .85; }
.d-fonts { grid-column: span 3; justify-content: space-around; gap: 20px; padding: 0 20px; background: #fff; }
.d-fonts div { display: grid; gap: 6px; text-align: center; }
.d-fonts b { font-size: 30px; color: #3b0f4f; line-height: 1.6; }
.d-fonts span { font-size: 13px; }
.d-fonts small { font-size: 11px; color: #7d6592; direction: rtl; }
.d-pattern { background: #6a1b9a; color: #fff; }
.d-pattern::before { content: ""; position: absolute; inset: -40%; background: url("../img/logo-mark.png") 0 0 / 54px auto; opacity: .22; rotate: -14deg; }
.anim .d-pattern::before { animation: d-slide 14s linear infinite; }
@keyframes d-slide { to { background-position: 108px 155px; } }
.d-pattern > small { z-index: 1; padding: 3px 10px; border-radius: 8px; background: rgba(40, 6, 70, .85); }
.d-copied { position: fixed; z-index: 70; bottom: 26px; left: 50%; translate: -50% 20px; padding: 10px 22px; border-radius: 99px; font-size: 13px; color: #fff; background: #240740; opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s; }
.d-copied.show { opacity: 1; translate: -50% 0; }

/* ===== 3. Identity lab ===== */
.d-lab { padding: 56px 0 64px; color: #fff; background: linear-gradient(120deg, #2a0846, #1d0731 55%, #3a0f63); }
.d-lab .section-tag { color: #c687f5; }
.d-lab-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 0 63px; }
.d-controls h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.d-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.d-options button { height: 48px; border-radius: 14px; cursor: pointer; font: 500 13px Alexandria, sans-serif; color: #fff; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(220, 180, 255, .3); transition: background .25s; }
.d-options button[aria-pressed="true"] { background: linear-gradient(90deg, #a52fd0, #641aa6); border-color: #d9a8ff; }
.d-dots { display: flex; gap: 14px; margin-bottom: 34px; }
.d-dots button { width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, .45); transition: scale .25s, box-shadow .25s; }
.d-dots button[aria-pressed="true"] { scale: 1.15; box-shadow: 0 0 0 3px #1d0731, 0 0 0 5px #d9a8ff; }
.d-solid { width: 100%; height: 56px; background: #fbf8ff; color: var(--ink); }
.d-stage { display: grid; place-items: center; height: 420px; border-radius: 30px; background: radial-gradient(circle at 50% 35%, #fbf8ff, #d9c3ee 75%); overflow: hidden; }
.d-product { --ink-on: #fff; position: relative; color: var(--ink-on); }
.d-product.on-light { --ink-on: #3b0f4f; }
.d-shape { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--c); transition: background .35s; box-shadow: 0 30px 40px rgba(50, 10, 80, .35); }
.d-shape img { position: relative; z-index: 1; width: 90px; }
.d-shape span { position: relative; z-index: 1; font-size: 16px; font-weight: 600; }
.d-product[data-surface="card"] .d-shape { width: 400px; height: 232px; border-radius: 18px; rotate: -6deg; }
.d-product[data-surface="card"] .d-shape::after { content: ""; position: absolute; inset: 14px; border: 1px solid currentColor; border-radius: 10px; opacity: .25; }
.d-product[data-surface="bag"] .d-shape { width: 250px; height: 290px; margin-top: 50px; border-radius: 6px 6px 14px 14px; }
.d-product[data-surface="bag"] .d-shape::before { content: ""; position: absolute; bottom: 100%; width: 120px; height: 76px; border: 7px solid #2e2e2e; border-bottom: 0; border-radius: 70px 70px 0 0; }
.d-product[data-surface="bag"] .d-shape::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 34px; background: rgba(0, 0, 0, .18); }
.d-product[data-surface="cup"] .d-shape { width: 220px; height: 250px; margin-left: -34px; border-radius: 14px 14px 46px 46px; background-image: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 30%, rgba(255, 255, 255, .14) 62%, rgba(0, 0, 0, .22)); }
.d-product[data-surface="cup"] .d-shape::before { content: ""; position: absolute; z-index: 0; left: 100%; top: 48px; width: 72px; height: 124px; border: 22px solid var(--c); border-left: 0; border-radius: 0 66px 66px 0; }
.d-product[data-surface="post"] .d-shape { width: 330px; height: 330px; border-radius: 20px; border: 10px solid #fff; overflow: hidden; }
.d-product[data-surface="post"] .d-shape::after { content: ""; position: absolute; width: 330px; height: 330px; left: -150px; bottom: -190px; border-radius: 50%; border: 46px solid #a970d3; opacity: .45; }
.d-product.swap { animation: d-swap .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes d-swap { from { scale: .88; opacity: .3; } }

/* ===== 4. Applications mosaic ===== */
.d-apps { padding: 64px 0 40px; }
.d-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 18px; padding: 0 40px; }
.d-mosaic figure { position: relative; overflow: hidden; border-radius: 22px; background: #3b0f4f; box-shadow: 0 16px 34px rgba(70, 20, 120, .2); }
.d-mosaic .wide { grid-column: span 2; }
.d-mosaic .tall { grid-row: span 2; }
.d-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
.d-mosaic figcaption { position: absolute; inset: auto 12px 12px auto; padding: 7px 15px; border-radius: 99px; font-size: 12px; color: #fff; background: rgba(36, 7, 64, .86); transition: translate .35s; }
.d-mosaic figure:hover img { scale: 1.08; }
.d-mosaic figure:hover figcaption { translate: 0 -5px; }

/* ===== 5. Comparison slider ===== */
.d-compare { padding: 54px 0 60px; }
.d-slider { position: relative; width: 800px; height: 450px; margin: 0 auto; overflow: hidden; border-radius: 28px; box-shadow: 0 26px 50px rgba(70, 20, 120, .28); }
.d-final, .d-sketch { position: absolute; inset: 0; display: grid; place-items: center; }
.d-final { background: radial-gradient(circle at 70% 80%, #7b25c4, transparent 55%), #3b0f4f; }
.d-sketch { background-color: #f7f3ea; background-image: linear-gradient(rgba(70, 90, 140, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 90, 140, .13) 1px, transparent 1px); background-size: 25px 25px; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.d-sketch svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(90, 110, 170, .35); stroke-width: 1; }
.d-final img, .d-sketch img { position: relative; height: 330px; }
.d-final span, .d-sketch span { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 99px; font-size: 12px; color: #fff; direction: rtl; }
.d-final span { right: 16px; background: rgba(255, 255, 255, .2); }
.d-sketch span { left: 16px; background: #46424f; }
.d-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #c98bff; pointer-events: none; }
.d-handle i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-style: normal; font-size: 18px; font-weight: 700; white-space: nowrap; color: #fff; background: #7b25c4; border: 3px solid #fff; }
.d-slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.d-slider:focus-within { outline: 3px solid #a970d3; outline-offset: 3px; }

/* ===== 6. Projects ===== */
.d-projects { padding: 56px 0 40px; }
.d-projects .s-head { margin-bottom: 18px; }
.d-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.d-tabs button { height: 46px; padding: 0 28px; border-radius: 99px; cursor: pointer; font: 600 13.5px Alexandria, sans-serif; color: var(--ink); background: #fff; border: 1.5px solid #dcc6f0; }
.d-tabs button[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, #a52fd0, #641aa6); }
.d-case { display: grid; grid-template-columns: 390px 1fr; gap: 26px; margin: 0 40px; padding: 26px; border-radius: 30px; background: #fff; box-shadow: 0 22px 50px rgba(80, 25, 135, .15); }
.d-case[hidden] { display: none; }
.anim .d-case { animation: d-swap .5s ease; }
.d-info { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 8px; }
.d-info > small { padding: 3px 12px; border-radius: 99px; font-size: 11px; background: #f1e6fb; }
.d-info h3 { margin: 12px 0 6px; font-size: 26px; line-height: 1.6; }
.d-info p { font-size: 13.5px; line-height: 2.1; color: #4a2c66; }
.d-info ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; list-style: none; }
.d-info li { padding: 5px 12px; border-radius: 10px; font-size: 12px; border: 1px solid #e0d1ef; }
.d-info dl { display: flex; gap: 26px; margin: 4px 0 20px; }
.d-info dt { font-size: 28px; font-weight: 800; line-height: 1.4; color: var(--violet); }
.d-info dd { font-size: 11.5px; color: #6d4f88; }
.d-case-colors { display: flex; gap: 10px; margin-top: auto; }
.d-case-colors span { width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); }
.d-mock { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 210px 210px; gap: 14px; }
.d-mock > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 20px; }
.d-mock b { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 24px; font-size: 38px; font-weight: 800; line-height: 1; }
.m-logo { background: var(--c); color: var(--a); }
.m-logo b { color: var(--c); background: var(--a); }
.m-logo strong { margin-top: 12px; font-size: 20px; }
.m-logo small { font-size: 12px; }
.m-card { background: var(--b); }
.m-card::before { content: ""; position: absolute; width: 190px; height: 112px; border-radius: 10px; background: var(--c); rotate: 8deg; translate: 16px 14px; box-shadow: 0 12px 20px rgba(0, 0, 0, .25); }
.m-card b { position: relative; width: 190px; height: 112px; border-radius: 10px; color: var(--c); background: var(--a); rotate: -8deg; box-shadow: 0 14px 22px rgba(0, 0, 0, .3); }
.m-card span { display: none; }
.m-cup { background: #efe9e2; }
.m-cup i { width: 108px; height: 18px; border-radius: 8px 8px 2px 2px; background: var(--a); }
.m-cup div { display: grid; place-items: center; width: 100px; height: 128px; background: var(--b); clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); }
.m-cup div b { width: 54px; height: 54px; border-radius: 50%; font-size: 28px; color: var(--a); background: var(--c); }
.m-post { background: var(--a); color: var(--c); }
.m-post::after { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; top: -110px; border-radius: 50%; border: 34px solid var(--d); }
.m-post b { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; color: var(--a); background: var(--c); }
.m-post strong { margin-top: 14px; font-size: 22px; }
.m-post small { font-size: 12px; opacity: .8; }

/* ===== 7. Figures ===== */
.d-figures { padding: 30px 0 10px; }
.d-figures ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 40px; padding: 30px 10px; list-style: none; text-align: center; border-radius: 28px; color: #fff; background: radial-gradient(ellipse at 100% 40%, #9b35d4, transparent 45%), linear-gradient(90deg, #35104f, #290a43 55%, #571892); }
.d-figures li + li { border-right: 1px solid rgba(190, 135, 240, .35); }
.d-figures b { display: block; font-size: 34px; font-weight: 800; }
.d-figures small { font-size: 12.5px; color: #e6d8f6; }

@media (max-width: 899px) {
  .d-hero { height: auto; padding-bottom: 24px; }
  .d-hero .hero-copy { top: auto; padding: 6px 20px 0; }
  .d-hero .eyebrow { font-size: 14px; }
  .d-hero .hero-copy h1 { font-size: clamp(27px, 8.4vw, 46px); }
  .d-hero .lead { width: auto; font-size: 13.5px; }
  .d-actions { flex-wrap: wrap; gap: 10px; }
  .d-actions .btn, .d-ghost { height: 48px; font-size: 13.5px; }
  .d-desk.hero-art { position: relative; left: auto; top: 0; margin: 26px calc(50% - 500px) -270px; transform: scale(.39); transform-origin: top center; }

  .d-board, .d-apps { padding: 42px 0 20px; }
  .d-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 12px; padding: 0 16px; }
  .d-main { grid-row: span 2; }
  .d-main img { width: 140px; }
  .d-icons, .d-colors, .d-fonts, .d-pattern { grid-column: span 2; }
  .d-icons { gap: 14px; }
  .d-icons span { width: 76px; height: 76px; }
  .d-icons img { width: 36px; }
  .d-colors { grid-row: span 2; flex-direction: column; }
  .d-colors button { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 18px; }
  .d-fonts { grid-row: span 2; flex-direction: column; justify-content: center; }
  .d-fonts b { font-size: 24px; }
  .d-fonts span { font-size: 11px; }

  .d-lab { padding: 42px 0; }
  .d-lab-grid { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 22px; padding: 0 16px; }
  .d-stage { order: -1; height: 340px; }
  .d-product { zoom: .72; }
  .d-dots { justify-content: center; }

  .d-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; padding: 0 16px; }
  .d-mosaic figcaption { font-size: 10.5px; padding: 4px 10px; inset: auto 8px 8px auto; }

  .d-compare { padding: 36px 16px; }
  .d-slider { width: 100%; max-width: 480px; height: 320px; }
  .d-final img, .d-sketch img { height: 220px; }

  .d-projects { padding: 36px 0 24px; }
  .d-tabs { flex-wrap: wrap; padding: 0 12px; }
  .d-tabs button { height: 40px; padding: 0 16px; font-size: 12px; }
  .d-case { grid-template-columns: minmax(0, 1fr); margin: 0 auto; width: calc(100% - 32px); max-width: 480px; padding: 16px; }
  .d-mock { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; gap: 8px; }
  .m-card b, .m-card::before { width: 118px; height: 72px; }
  .m-card b { font-size: 26px; }
  .m-logo strong, .m-post strong { font-size: 14px; text-align: center; }
  .d-mock .m-logo b { width: 56px; height: 56px; font-size: 28px; border-radius: 18px; }

  .d-figures ul { grid-template-columns: 1fr 1fr; row-gap: 20px; margin: 0 16px; padding: 22px 6px; }
  .d-figures li:nth-child(3) { border-right: 0; }
  .d-figures b { font-size: 26px; }
}

/* Very small phones: shrink the identity-lab product so the wide business card stays inside its stage */
@media (max-width: 359px) { .d-product { zoom: .62; } }
