
:root {
  --orange: #CA5F81 !important;
  --orange-2: #e487a3 !important;
  --on-orange: #ffffff !important;
  --mark-disc: #CA5F81 !important;
  --mark-fill: #ffffff !important;
  --mark-ink: #05070a !important;
}

/* Base clips brand to ~5em ("Chelara"); keep full Chelaran */
.bar__mark span {
  max-width: 9em !important;
}

/* Buttons on brand pink -> white text/icons */
.btn--orange,
.bar__cta {
  color: #fff !important;
}
.btn--orange svg,
.bar__cta svg {
  color: #fff !important;
}

/* Keep original disc slot (parallax/flood). Do NOT shift mark__o. */
.mark__svg text {
  fill: var(--on-ink);
}

/* Hero disc: keep lotus inside the circle on all viewports */
.mark__o {
  overflow: hidden;
  border-radius: 50%;
}
.mark__o .mark__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.mark__o .mark__head {
  transform-box: view-box;
  transform-origin: 100px 100px;
}
html.js .mark__w > text {
  animation: letter-up .9s var(--ease-out) both;
  animation-delay: 80ms;
}
html.js .mark__lk > text {
  animation: letter-up .9s var(--ease-out) both;
  animation-delay: .16s;
}

/* Footer */
.foot__brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}
.foot__word.foot__wordmark,
.foot__wordmark {
  margin: 0;
  font-size: clamp(2.8rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--on-ink);
}
.foot__badge {
  flex: none;
  width: clamp(72px, 12vw, 128px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.marquee__track i {
  background: var(--orange) !important;
  background-image: none !important;
}


/* Hero wordmark: keep CHE | disc | LARAN inside the disc slot */
.mark,
.mark__word,
.mark__svg {
  overflow: visible;
}
.hero__first,
.hero__pin {
  overflow: visible;
}

/* Desktop icon cursor (replaces courier white dot) */
.pic__cursor {
  fill: #ffffff;
  transform-box: fill-box;
  transform-origin: 30% 30%;
  animation: pic-cursor 2.8s var(--ease-in-out) infinite;
}
@keyframes pic-cursor {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-9px, 5px); }
  55% { transform: translate(-9px, 5px) scale(.94); }
  70% { transform: translate(3px, -3px); }
}

/* Desktop demo window */
.demo--app { justify-items: stretch; }
.demo--app .desk {
  width: min(100%, 560px);
  margin-inline: auto;
  border-radius: 18px;
  background: #0b1218;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden;
}
.desk__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #121a22;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.desk__traffic { display: flex; gap: 6px; }
.desk__traffic i {
  width: 10px; height: 10px; border-radius: 50%; background: #3d4a57;
}
.desk__traffic i:nth-child(1) { background: #ff5f57; }
.desk__traffic i:nth-child(2) { background: #febc2e; }
.desk__traffic i:nth-child(3) { background: #28c840; }
.desk__title {
  font-size: 12px; color: var(--on-ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.desk__screen {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 440px;
  background: #fff;
  color: #06121a;
}
.desk__side {
  background: #0f1820; color: #d7e0e8; padding: 14px 12px;
}
.desk__brand {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
}
.desk__brand span {
  width: 18px; height: 18px; border-radius: 5px; background: var(--orange);
}
.desk__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.desk__side li {
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: #8ea0b0;
}
.desk__side li.is-on { background: rgba(202,95,129,.18); color: #fff; }
.desk__main { position: relative; padding: 12px 14px 16px; overflow: hidden; }
.demo--app .push { left: 12px; right: 12px; width: auto; }
.demo--app .app { max-width: none; }
.demo--app .app__top { padding-left: 0; }
.demo--app .app__back { display: none; }
@media (max-width: 759px) {
  .desk__screen { grid-template-columns: 1fr; }
  .desk__side { display: none; }
}

/* Brief form — content like reference, Chelaran dark card */
.brief__kicker {
  margin: 0 0 8px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--on-ink-soft);
}
.brief__lead {
  margin: 0 0 22px;
  font-size: var(--step-body);
  line-height: 1.45;
  color: var(--on-ink);
}
.brief__fields {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}
.brief__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .brief__row { grid-template-columns: 1fr; }
}
.fbox { display: grid; gap: 8px; }
.fbox__label {
  margin: 0;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--on-ink-soft);
}
.fbox__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.04) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  caret-color: var(--orange);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  resize: vertical;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.fbox__input::placeholder {
  color: #7f8f9c;
  -webkit-text-fill-color: #7f8f9c;
  opacity: 1;
}
.fbox__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(202,95,129,.22);
}
.fbox--area .fbox__input { min-height: 140px; }
.brief__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--on-ink-soft);
  cursor: pointer;
}
.brief__consent input {
  margin-top: 3px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}
.brief__consent .link {
  color: var(--on-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.brief__send { width: auto; min-width: 200px; }
/* Logo mark: fill + stroke follow --mark-fill (white on pink disc) */
.che-mark__fill { fill: var(--mark-fill, #ffffff); }
.che-mark__stroke {
  fill: none;
  stroke: var(--mark-fill, #ffffff);
  stroke-width: 49;
  stroke-linejoin: round;
}


/* Contact row arrows: white on dark disc */
.contact .row__go {
  color: #ffffff !important;
  background: var(--ink);
}
.contact .row__go svg {
  color: #ffffff;
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.brief__send.is-loading {
  opacity: .7;
  pointer-events: none;
}
.brief__status:not(:empty) {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--on-ink-soft);
}
.brief__status.is-error {
  color: #ff8f8f;
}


/* Works / projects — continuous ink (no sheet): avoids paper “horns” at corners */
.works {
  color: var(--on-ink);
  background: var(--ink);
  padding-block: var(--section) clamp(40px, 5vw, 80px);
}
.works__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.works__title,
.works__lead {
  grid-column: 1 / -1;
}
.works__lead {
  max-width: 36em;
  color: var(--on-ink-soft);
  font-size: var(--step-body);
  margin-top: 12px;
}
.works__list {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 36px);
  min-width: 0;
}
.works__list > li {
  min-width: 0;
  margin: 0;
}
.work {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 18px;
  border-radius: 18px;
  background: rgba(244, 243, 240, 0.035);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s var(--ease-out);
}
.work__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0b1218;
  margin-bottom: 8px;
}
.work__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.work__badge,
.work__name,
.work__cat,
.work__cta {
  display: block;
  padding-inline: 16px;
}
.work__badge {
  width: fit-content;
  margin: 0 16px; /* padding-inline on badge is its own chip padding */
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.work__badge--client {
  background: rgba(202, 95, 129, 0.18);
  color: #e487a3;
}
.work__badge--own {
  background: rgba(110, 190, 170, 0.16);
  color: #8fd6c2;
}
.work__name {
  margin: 0;
  font-size: var(--step-lead);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--on-ink);
}
.work__cat {
  margin: 0;
  color: var(--on-ink-soft);
  font-size: var(--step-small);
  line-height: 1.45;
}
.work__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--orange);
}
.works__all {
  grid-column: 1 / -1;
  margin: clamp(20px, 3vw, 32px) 0 0;
}
.works__all .link {
  font-weight: 700;
  font-size: var(--step-body);
}
@media (hover: hover) and (pointer: fine) {
  .work:hover {
    background: rgba(244, 243, 240, 0.06);
    transform: translateY(-3px);
  }
  .work:hover .work__media img {
    transform: scale(1.05);
  }
}
.work:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 979px) {
  .works__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .works__list { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile harden */
@media (max-width: 759px) {
  .brief__row { grid-template-columns: 1fr; }
  .brief__send { width: 100%; }
  .foot__brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .desk {
    width: 100%;
  }
  .offer {
    gap: clamp(12px, 3vw, 20px);
  }
  .contact__in {
    gap: 28px;
  }
  .fbox__input {
    font-size: 16px; /* prevent iOS zoom */
  }

  /* Base CSS hides studio name + coin under 759px — bring them back */
  .studio__name {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 40px;
  }
  .studio__q,
  .story,
  .studio__coin {
    display: block !important;
    grid-column: 1 / -1;
  }
  .studio__coin {
    order: 2;
    margin: 8px auto 4px;
    max-width: min(100%, 280px);
    width: 100%;
  }
  .coin {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 280px;
    margin-inline: auto;
    aspect-ratio: 1;
  }
  .story[data-face="cloud"] { order: 1; }
  .story[data-face="lotus"] { order: 3; }
  .studio__q { order: 0; }

  .vow__d {
    display: block !important;
    margin-top: 6px;
    font-size: .95rem;
    color: var(--on-ink-soft);
  }
  .vow {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0 !important;
    padding-block: 10px;
  }
  .vow:before {
    display: none;
  }

  .contact__links .row {
    min-height: 52px;
  }
  .brief {
    padding-block: 28px;
  }
}
@media (max-width: 480px) {
  .brief {
    padding-inline: 18px;
  }
  .brief__consent {
    align-items: flex-start;
  }
  .studio__coin,
  .coin {
    max-width: 240px;
  }
  .mark__svg {
    max-width: 100%;
  }
}
