:root {
  --paper: #ffffff;
  --ink: #333333;
  --brand: #ee7589;
  --pink: #f9d0d7;
  --lime: #fff0f3;
  --line: #e5dfe1;
  --font: 'DM Sans', 'Noto Sans JP', sans-serif;
}
:root[data-motion='paused'],
:root[data-motion-idle] {
  --site-motion-state: paused;
}
html[data-motion='paused'] {
  scroll-behavior: auto;
}
html[data-motion='paused'] .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
/* Opening an accordion must stay readable even when entrance effects are paused. */
html[data-motion='paused'] .service-detail {
  animation: none;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-toggle:hover {
  background: #fff0f3;
}
.motion-toggle:disabled {
  cursor: default;
}
.motion-toggle--header {
  position: relative;
  width: 44px;
  padding: 0;
}
.motion-toggle--header .motion-toggle-label {
  position: absolute;
  z-index: 1;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 12px #33333316;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
}
.motion-toggle--header .motion-toggle-label::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 18px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: rotate(45deg);
}
/* Bridge the gap so the tooltip remains visible when the pointer enters it. */
.motion-toggle--header .motion-toggle-label::after {
  content: '';
  position: absolute;
  inset: -10px 0 100%;
}
.motion-toggle--header:is(:hover, :focus-visible):not(.tooltip-dismissed) .motion-toggle-label {
  opacity: 1;
  visibility: visible;
}
.motion-toggle--menu {
  display: none;
  justify-self: start;
}
.motion-toggle-icon {
  width: 12px;
  height: 13px;
  border-inline: 4px solid currentColor;
}
.motion-toggle[aria-pressed='true'] .motion-toggle-icon {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}
.hero {
  --hero-play-state: paused;
}
.hero.motion-active {
  --hero-play-state: var(--site-motion-state, running);
}
.hero-original-friend {
  visibility: hidden;
}
:root[data-motion='paused'] .hero-original-friend {
  visibility: visible;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #f9d0d74a, #fff0f340 52%, transparent 72%);
  pointer-events: none;
}
.art-orbit {
  position: absolute;
  inset: 9% 2%;
  border: 1px dashed #ee75894a;
  border-radius: 50%;
  pointer-events: none;
}
.art-orbit::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 14%;
  width: 11px;
  height: 11px;
  border: 3px solid #ee7589;
  border-radius: 50%;
  background: white;
}
.ticker:not(.motion-active) div {
  animation-play-state: paused;
}
@keyframes hero-halo {
  0%, 100% { transform: scale(.92) rotate(-8deg); opacity: .65; }
  50% { transform: scale(1.1) rotate(12deg); opacity: 1; }
}
@keyframes hero-ring {
  to { transform: rotate(360deg); }
}
@keyframes hero-caption {
  0%, 100% { translate: 0 0; }
  50% { translate: 9px -7px; }
}
@keyframes hero-underline {
  0%, 6% { stroke-dashoffset: 1; }
  18%, 90% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art::before {
    animation: hero-halo 9s ease-in-out infinite;
    animation-play-state: var(--hero-play-state);
  }
  .art-orbit {
    animation: hero-ring 32s linear infinite;
    animation-play-state: var(--hero-play-state);
  }
  .hero .art-caption {
    animation: hero-caption 5s ease-in-out infinite;
    animation-play-state: var(--hero-play-state);
  }
  .hero .caption-bottom {
    animation-delay: -2.5s;
    animation-direction: reverse;
  }
  .title-fun path {
    stroke-dasharray: 1;
    animation: hero-underline 7s ease-in-out infinite;
    animation-play-state: var(--hero-play-state);
  }
}
@media (max-width: 760px) {
  .motion-toggle--header {
    display: none;
  }
  .motion-toggle--menu {
    display: inline-flex;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 105px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 7px;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 50;
  padding: 12px;
  background: var(--lime);
}
.skip-link:focus {
  top: 10px;
}
.header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
  background: var(--paper);
}
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 39px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}
.logo-dot {
  color: var(--brand);
}
.logo-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  transform: rotate(-12deg);
  margin-right: 10px;
}
.logo-mark i {
  background: var(--brand);
  border-radius: 50% 50% 3px 50%;
}
.logo-mark i:nth-child(2) {
  transform: rotate(90deg);
}
.logo-mark i:nth-child(3) {
  transform: rotate(-90deg);
}
.logo-mark i:nth-child(4) {
  transform: rotate(180deg);
}
.desktop-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 22px;
}
.desktop-nav a {
  font-size: 12px;
  font-weight: 700;
  position: relative;
  padding: 10px 0;
}
.desktop-nav a:after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
}
.desktop-nav a:hover:after {
  width: 100%;
}
.contact-nav {
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  gap: 31px;
  border-radius: 30px;
  padding: 17px 23px;
  font-size: 12px;
  font-weight: 700;
}
.contact-nav:hover {
  background: #f9d0d7;
  transform: translateY(-2px);
}
.contact-nav span {
  font-size: 20px;
  line-height: 1;
}
.menu-toggle {
  display: none;
}
.mobile-nav[hidden] {
  display: none;
}
.hero {
  min-height: 704px;
  max-width: 1600px;
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 62px 5.5% 65px;
  align-items: center;
  overflow: hidden;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-dot {
  height: 7px;
  width: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ee75890b;
}
.hero h1 {
  font-size: clamp(32px, 3.7vw, 61px);
  line-height: 1.3;
  letter-spacing: 0.005em;
  font-weight: 900;
  margin: 26px 0 22px;
  white-space: nowrap;
}
.title-fun {
  position: relative;
  color: var(--brand);
  display: inline-block;
  z-index: 1;
}
.title-fun svg {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  height: 16px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 5;
  stroke-linecap: round;
  z-index: -1;
}
.hero-description {
  font-size: 14px;
  font-weight: 500;
  line-height: 2.25;
  letter-spacing: 0.055em;
  margin: 0 0 29px;
}
.round-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.circle-arrow {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--ink);
  color: white;
  font-size: 25px;
}
.round-link:hover .circle-arrow {
  transform: rotate(45deg);
  background: var(--brand);
}
.hero-foot {
  display: flex;
  gap: 28px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 49px;
}
.hero-art {
  position: relative;
  margin-left: -10px;
  margin-right: -30px;
  align-self: center;
  aspect-ratio: 1.075;
}
.hero-art :is(img, .hero-scene) {
  width: 114%;
  height: 114%;
  max-width: none;
  position: absolute;
  top: -8%;
  left: -8%;
}
.art-caption {
  position: absolute;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  z-index: 2;
}
.caption-top {
  top: 0;
  left: 13%;
  transform: rotate(5deg);
}
.caption-bottom {
  bottom: -2%;
  right: 12%;
  transform: rotate(-5deg);
}
.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scroll-cue span:first-child {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.scroll-cue span:last-child {
  font-size: 24px;
}
.asterisk-mark {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.ticker {
  background: var(--brand);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.5deg);
  width: 100%;
  position: relative;
  z-index: 3;
}
.ticker div {
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 800;
  display: flex;
  gap: 38px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}
.ticker span {
  color: var(--lime);
  font-size: 31px;
  line-height: 1;
}
.section {
  padding: 100px 6.5%;
  scroll-margin-top: 20px;
}
.section-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-kicker > span:last-child:not(.tiny-cross) {
  margin-left: auto;
  color: #666666;
  font-size: 9px;
  letter-spacing: 1px;
}
.tiny-cross {
  font-size: 22px;
  color: var(--brand);
  line-height: 1;
}
.about {
  padding-top: 104px;
  padding-bottom: 85px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12%;
  margin-top: 49px;
}
.about h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.3;
  margin: 0;
}
.about-body p {
  font-size: 13px;
  line-height: 2.2;
  font-weight: 500;
  margin: 24px 0;
}
.about-body p.lead {
  font-size: 17px;
  line-height: 2;
  font-weight: 700;
  margin-top: 1px;
}
.text-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
}
.text-link span {
  font-size: 23px;
}
.text-link:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.little-friend {
  width: 138px;
  height: 103px;
  margin: 40px 0 0 46px;
  border-radius: 65px 65px 17px 17px;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(-10deg);
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-top: 30px;
  box-shadow: 5px 5px 0 var(--ink);
}
.friend-eye {
  width: 9px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
}
.friend-smile {
  position: absolute;
  top: 53px;
  width: 25px;
  height: 13px;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}
.little-friend > span {
  position: absolute;
  left: 153px;
  top: 29px;
  width: 150px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  transform: rotate(8deg);
}
.little-friend > span:before {
  content: '↙';
  position: absolute;
  left: 3px;
  top: 23px;
  font-size: 29px;
}
.services {
  background: #fff5f7;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin: 38px 0 49px;
}
.section-heading h2 {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
}
.section-heading p {
  font-size: 12px;
  font-weight: 500;
  line-height: 2;
  margin: 0;
}
.brand {
  color: var(--brand);
}
.service-row {
  border-top: 1px solid #e5dfe1;
}
.service-row:last-child {
  border-bottom: 1px solid #e5dfe1;
}
.service-row summary {
  display: grid;
  grid-template-columns: 45px 83px 1fr 1fr 40px;
  align-items: center;
  min-height: 125px;
  gap: 15px;
  list-style: none;
}
.service-row summary::-webkit-details-marker {
  display: none;
}
.service-no {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
}
.service-icon {
  height: 58px;
  width: 58px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 34px;
}
.service-row summary:hover .service-icon {
  transform: rotate(-9deg);
}
.icon-web {
  background: #f9d0d7;
  border-radius: 11px;
}
.icon-cms {
  background: var(--lime);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: bold;
}
.icon-code {
  background: var(--pink);
  border-radius: 15px;
  font-size: 25px;
  font-weight: 700;
  transform: rotate(5deg);
}
.icon-design {
  background: #f9d0d7;
  border-radius: 50%;
  font-size: 47px;
}
.icon-grow {
  background: #f9d0d7;
  border-radius: 50% 50% 5px 5px;
}
.service-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.015em;
}
.service-title small {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  display: block;
  font-weight: 500;
  margin-top: 6px;
}
.service-brief {
  font-size: 12px;
  font-weight: 500;
  justify-self: end;
  margin-right: 26px;
}
.expand {
  width: 34px;
  height: 34px;
  border: 1px solid #d5bfc4;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 21px;
}
.service-row[open] .expand {
  transform: rotate(45deg);
  background: var(--lime);
}
.service-detail {
  padding: 0 70px 35px 143px;
  max-width: 850px;
}
.service-detail p {
  font-size: 14px;
  line-height: 2;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tags span {
  border: 1px solid #e0c5cb;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 10px;
}
.service-detail :where(a) {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  border-bottom: 1px solid;
  padding-bottom: 4px;
}
.service-note {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  font-size: 11px;
  margin-top: 29px;
}
.service-note a {
  border-bottom: 1px solid;
  padding-bottom: 3px;
}
.works {
  padding-bottom: 106px;
}
.works .section-heading h2 {
  font-size: 32px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
}
.work-image {
  aspect-ratio: 1.35;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 25px;
  overflow: hidden;
}
.work-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 7px 18px #0000001c;
}
.work-card:hover .work-image img {
  transform: scale(1.06) rotate(-2deg);
}
.work-yellow {
  background: #f8e7eb;
}
.work-blue {
  background: #f3eeeb;
}
.work-pink {
  background: #f9e9ed;
}
.work-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  background: var(--paper);
  font-size: 22px;
  border: 1px solid var(--ink);
}
.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-top: 21px;
  color: #666666;
}
.work-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0;
}
.work-card > p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}
.flow {
  background: var(--lime);
}
.flow .section-heading h2 {
  font-size: 30px;
}
.flow-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 54px 0 0;
}
.flow-grid li {
  border-top: 1px solid #d2aab2;
  padding-top: 20px;
  position: relative;
}
.flow-grid li + li:before {
  content: '↗';
  position: absolute;
  left: -34px;
  top: 50px;
  font-size: 25px;
}
.flow-grid li > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.flow-grid h3 {
  font-size: 21px;
  margin: 19px 0 14px;
}
.flow-grid p {
  font-size: 12px;
  line-height: 2;
}
.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding-top: 108px;
  padding-bottom: 100px;
}
.company h2 {
  font-size: 33px;
  line-height: 1.3;
  margin: 32px 0 19px;
}
.company p {
  font-size: 12px;
  line-height: 2;
}
.company-flower {
  font-size: 95px;
  color: var(--brand);
  display: block;
  line-height: 1;
  margin-top: 30px;
}
.company dl {
  margin: 15px 0 0;
}
.company dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  font-size: 12px;
  line-height: 2;
}
.company dt {
  font-size: 10px;
  color: #666666;
}
.company dd {
  margin: 0;
  font-weight: 500;
}
.contact {
  background: var(--brand);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 10%;
  padding-top: 95px;
  padding-bottom: 95px;
  position: relative;
  overflow: hidden;
}
.contact h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 36px 0 22px;
  letter-spacing: 0.025em;
}
.contact h2 > span {
  color: var(--lime);
}
.contact-heading > p {
  font-size: 12px;
  line-height: 2.2;
}
.contact-sticker {
  border-radius: 50%;
  width: 137px;
  height: 137px;
  background: var(--lime);
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  margin: 45px 0 0 30px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 #cb6c7e;
}
.contact-sticker span {
  position: absolute;
  right: -13px;
  bottom: 12px;
  font-size: 71px;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
}
.form-shell {
  margin-top: 0;
}
.preview-note {
  font-size: 8px;
  letter-spacing: 1px;
  border-bottom: 1px solid #cf6a7d;
  padding-bottom: 17px;
  margin: 0 0 23px;
}
.preview-note span {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.8;
  margin-top: 7px;
  color: var(--ink);
}
form > label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 21px;
}
.required {
  font-size: 8px;
  color: var(--ink);
  background: var(--lime);
  padding: 2px 5px;
  margin-left: 7px;
  border-radius: 2px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 13px 15px;
  margin-top: 9px;
  font-size: 12px;
  outline-offset: 3px;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--lime);
}
input::placeholder,
textarea::placeholder {
  color: #777777;
  font-size: 11px;
}
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #b94e64;
  background: var(--contact-button);
  color: var(--paper);
  padding: 17px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}
.form-submit span {
  font-size: 21px;
}
.form-submit:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.form-status {
  font-size: 11px;
  line-height: 1.8;
}
footer {
  padding: 39px 4.5%;
  display: flex;
  align-items: center;
  gap: 35px;
}
footer .logo {
  font-size: 30px;
}
footer .logo-mark {
  width: 23px;
  height: 23px;
}
footer p {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}
footer small {
  font-size: 9px;
  margin-left: auto;
  color: #666666;
}
.back-top {
  display: grid;
  place-content: center;
  border: 1px solid #e0c5cb;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
}
dialog {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  max-width: 640px;
  width: calc(100% - 32px);
  padding: 45px;
  max-height: 85vh;
}
dialog::backdrop {
  background: #55464b99;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 24px;
  margin: 22px 0;
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 29px;
}
dialog dl > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  font-size: 12px;
  line-height: 1.8;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
dialog dt {
  color: #666666;
}
dialog dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialog-note {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 25px;
}
.dialog-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
}
.edit-button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 12px;
}
.dialog-actions a {
  color: var(--brand);
  font-size: 11px;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  .section {
    padding-left: max(6.5%, calc((100% - 1392px) / 2));
    padding-right: max(6.5%, calc((100% - 1392px) / 2));
  }
}
@media (max-width: 1100px) {
  .header {
    padding: 0 4%;
    gap: 20px;
    height: 93px;
  }
  .logo {
    font-size: 33px;
  }
  .desktop-nav {
    gap: 18px;
    margin-right: 0;
  }
  .desktop-nav a {
    font-size: 11px;
  }
  .contact-nav {
    padding: 15px 18px;
    gap: 20px;
    font-size: 11px;
  }
  .hero {
    min-height: 640px;
    padding-top: 55px;
    padding-bottom: 65px;
  }
  .hero h1 {
    font-size: 3.7vw;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-foot {
    font-size: 8px;
    gap: 15px;
  }
  .hero-art {
    margin-left: 0;
    margin-right: -15px;
  }
  .about-grid {
    gap: 7%;
  }
  .about h2 {
    font-size: 31px;
  }
  .section {
    padding: 80px 5.5%;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .service-row summary {
    grid-template-columns: 30px 65px 1.1fr 1fr 34px;
    gap: 10px;
  }
  .service-title {
    font-size: 18px;
  }
  .service-brief {
    font-size: 11px;
    margin-right: 10px;
  }
  .service-detail {
    padding-left: 105px;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .work-card h3 {
    font-size: 14px;
  }
  .works .section-heading h2 {
    font-size: 28px;
  }
  .contact {
    gap: 7%;
  }
  .contact h2 {
    font-size: 28px;
  }
  .company {
    gap: 7%;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 85px;
  }
  .header {
    height: 80px;
    padding: 0 6%;
    gap: 17px;
    position: sticky;
    top: 0;
  }
  .logo {
    font-size: 31px;
    letter-spacing: -1.7px;
  }
  .logo-mark {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }
  .desktop-nav {
    display: none;
  }
  .contact-nav {
    margin-left: auto;
    font-size: 9px;
    padding: 12px 14px;
    gap: 14px;
  }
  .contact-nav span {
    font-size: 17px;
  }
  .menu-toggle {
    display: flex;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 2px;
  }
  .menu-toggle > span {
    height: 2px;
    background: var(--ink);
    width: 24px;
  }
  .menu-toggle[aria-expanded='true'] > span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] > span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    padding: 30px 7%;
    z-index: 19;
    background: var(--paper);
    box-shadow: 0 20px 25px #00000010;
    display: grid;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 38px 7% 64px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(26px, 8.7vw, 64px);
    line-height: 1.3;
    margin: 22px 0 21px;
    letter-spacing: -0.025em;
  }
  .title-fun svg {
    height: 10px;
    bottom: 3px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 2.05;
    letter-spacing: 0.02em;
    margin-bottom: 23px;
  }
  .round-link {
    font-size: 11px;
    gap: 19px;
  }
  .circle-arrow {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }
  .hero-foot {
    display: none;
  }
  .hero-art {
    width: 90%;
    max-width: 460px;
    align-self: center;
    margin: 26px 0 0;
    aspect-ratio: 1.12;
  }
  .caption-top {
    font-size: 6px;
    top: 4%;
    left: 8%;
  }
  .caption-bottom {
    font-size: 6px;
    bottom: -1%;
    right: 5%;
  }
  .hero-art :is(img, .hero-scene) {
    width: 115%;
    height: 115%;
    top: -7%;
    left: -8%;
  }
  .scroll-cue {
    bottom: 22px;
    left: 7%;
    right: 7%;
  }
  .scroll-cue span:first-child {
    font-size: 7px;
  }
  .ticker {
    padding: 13px 0;
    transform: rotate(-2deg);
  }
  .ticker div {
    font-size: 19px;
    gap: 25px;
  }
  .ticker span {
    font-size: 25px;
  }
  .section {
    padding: 65px 7%;
  }
  .section-kicker {
    font-size: 8px;
    letter-spacing: 0.8px;
    gap: 8px;
  }
  .section-kicker > span:last-child:not(.tiny-cross) {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .tiny-cross {
    font-size: 19px;
  }
  .about-grid {
    display: block;
    margin-top: 30px;
  }
  .about h2 {
    font-size: 27px;
    line-height: 1.3;
  }
  .about-title {
    position: relative;
  }
  .little-friend {
    position: absolute;
    right: 3px;
    top: calc(100% + 42px);
    transform: scale(0.63) rotate(-10deg);
    transform-origin: top right;
    margin: 0;
  }
  .little-friend > span {
    display: none;
  }
  .about-body {
    margin-top: 34px;
  }
  .about-body p.lead {
    font-size: 15px;
    padding-right: 55px;
  }
  .about-body p {
    font-size: 12px;
    line-height: 2.2;
  }
  .desktop-br {
    display: none;
  }
  .text-link {
    font-size: 11px;
  }
  .section-heading {
    display: block;
    margin: 29px 0 30px;
  }
  .section-heading h2 {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }
  .section-heading p {
    margin-top: 19px;
    font-size: 11px;
  }
  .service-row summary {
    grid-template-columns: 20px 43px 1fr 28px;
    gap: 9px;
    min-height: 100px;
  }
  .service-icon {
    width: 37px;
    height: 37px;
    font-size: 25px;
  }
  .icon-code {
    font-size: 16px;
  }
  .icon-design {
    font-size: 31px;
  }
  .service-title {
    font-size: 15px;
    letter-spacing: -0.04em;
  }
  .service-title small {
    font-size: 11px;
    margin-top: 5px;
    letter-spacing: 0;
  }
  .service-no {
    font-size: 9px;
  }
  .service-brief {
    display: none;
  }
  .expand {
    width: 27px;
    height: 27px;
    font-size: 17px;
  }
  .service-detail {
    padding: 0 12px 28px 29px;
  }
  .service-detail p {
    font-size: 12px;
  }
  .tags span {
    font-size: 9px;
  }
  .service-detail :where(a) {
    font-size: 11px;
  }
  .service-note {
    display: block;
    font-size: 10px;
    line-height: 2.5;
    margin-top: 24px;
  }
  .service-note a {
    display: table;
  }
  .works .section-heading h2 {
    font-size: 25px;
  }
  .works .section-heading .text-link {
    margin-top: 22px;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .work-image {
    aspect-ratio: 1.45;
    padding: 30px;
  }
  .work-meta {
    font-size: 8px;
    margin-top: 16px;
  }
  .work-card h3 {
    font-size: 17px;
    margin: 10px 0;
  }
  .work-card > p {
    font-size: 10px;
  }
  .flow .section-heading h2 {
    font-size: 25px;
    max-width: 290px;
  }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .flow-grid li {
    padding-top: 16px;
  }
  .flow-grid li + li:before {
    display: none;
  }
  .flow-grid h3 {
    font-size: 19px;
    margin: 14px 0 10px;
  }
  .flow-grid p {
    font-size: 12px;
  }
  .company {
    display: block;
  }
  .company h2 {
    font-size: 27px;
    margin-top: 25px;
  }
  .company-flower {
    position: absolute;
    right: 9%;
    margin-top: -95px;
    font-size: 70px;
  }
  .company dl {
    margin-top: 35px;
  }
  .company dl > div {
    grid-template-columns: 87px 1fr;
    font-size: 11px;
    padding: 19px 0;
  }
  .company dt {
    font-size: 10px;
  }
  .contact {
    display: block;
  }
  .contact h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 26px 0 17px;
    letter-spacing: -0.02em;
  }
  .contact-sticker {
    position: absolute;
    right: 9%;
    top: 223px;
    width: 85px;
    height: 85px;
    font-size: 19px;
    margin: 0;
  }
  .contact-sticker span {
    font-size: 45px;
    right: -8px;
    bottom: 4px;
  }
  .contact-heading > p {
    font-size: 11px;
    line-height: 2;
  }
  .form-shell {
    margin-top: 72px;
  }
  .preview-note span {
    font-size: 9px;
  }
  .form-submit {
    font-size: 11px;
  }
  .contact form > label {
    font-size: 11px;
  }
  footer {
    padding: 32px 7%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
  }
  footer .logo {
    font-size: 28px;
  }
  footer p {
    grid-column: 1;
    grid-row: 2;
    font-size: 7px;
    margin: 0;
  }
  footer small {
    grid-column: 1;
    grid-row: 3;
    font-size: 8px;
    margin: 0;
  }
  .back-top {
    grid-row: 1;
    grid-column: 2;
  }
  .reveal {
    transform: translateY(12px);
  }
  dialog {
    padding: 32px 24px;
  }
  dialog h2 {
    font-size: 21px;
  }
  dialog dl > div {
    grid-template-columns: 82px 1fr;
    font-size: 11px;
  }
  .dialog-actions {
    gap: 20px;
  }
}
@media (max-width: 370px) {
  .contact-nav {
    font-size: 8px;
    gap: 8px;
    padding: 10px;
  }
  .header {
    gap: 13px;
  }
  .logo {
    font-size: 27px;
  }
  .logo-mark {
    width: 20px;
    height: 20px;
  }
  .hero h1 {
    font-size: 8.7vw;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .service-title {
    font-size: 13px;
  }
  .contact h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .contact-nav {
    font-size: 0;
    gap: 0;
    padding: 12px 15px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .contact-nav:before {
    content: '相談する';
    font-size: 10px;
    margin-right: 14px;
  }
}
body {
  overflow-x: clip;
}
html {
  overflow-x: hidden;
}

/* Original Ribelan identity: official logo, white, gray and signature pink. */
.logo {
  letter-spacing: normal;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: 190px;
  height: auto;
}
.logo-mark,
.logo-dot {
  display: none;
}
.contact-nav {
  color: #333;
}
.contact-nav:hover {
  color: #333;
}
.ticker {
  color: #333;
}
.ticker span {
  color: #fff;
}
.contact {
  color: #333;
}
.contact h2 > span {
  color: var(--ink);
}
.preview-note {
  border-color: #bf576c;
}
.preview-note span {
  color: #444;
}
.form-submit {
  color: #333;
}
.form-submit:hover {
  color: #333;
}
.required {
  color: var(--ink);
}
.contact-sticker {
  color: var(--ink);
}
.service-detail :where(a),
.dialog-actions a {
  color: #a63d53;
}
.text-link:hover {
  color: #a63d53;
}
.form-status {
  color: #333;
}
.contact-nav:focus-visible,
.contact :focus-visible {
  outline-color: #555;
}
.company-flower {
  color: var(--brand);
}
footer .logo img {
  width: 155px;
}
@media (max-width: 1100px) {
  .logo img {
    width: 165px;
  }
}
@media (max-width: 760px) {
  .logo img {
    width: 145px;
  }
  footer .logo img {
    width: 145px;
  }
}
@media (max-width: 370px) {
  .logo img {
    width: 123px;
  }
}

/* Playful, energetic motion, active only while each motif is in view. */
.friend-eye {
  transform-origin: center;
}
.company > div {
  position: relative;
}
.company-flower {
  width: max-content;
  transform-origin: center;
}
.contact-sticker > span {
  transform-origin: 30% 75%;
}
@keyframes friend-sway {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  20% {
    translate: -6px 3px;
    rotate: -9deg;
    scale: 1.04 0.94;
  }
  48% {
    translate: 10px -27px;
    rotate: 13deg;
    scale: 0.97 1.06;
  }
  76% {
    translate: -7px -9px;
    rotate: -8deg;
    scale: 1;
  }
}
@keyframes friend-blink {
  0%,
  53%,
  55%,
  100% {
    scale: 1 1;
  }
  54% {
    scale: 1 0.08;
  }
}
@keyframes service-bob {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  20% {
    translate: -3px 3px;
    rotate: -9deg;
    scale: 1.04 0.95;
  }
  48% {
    translate: 4px -13px;
    rotate: 14deg;
    scale: 0.98 1.04;
  }
  76% {
    translate: -3px -4px;
    rotate: -7deg;
    scale: 1;
  }
}
@keyframes service-twirl {
  0% {
    translate: 0 0;
    rotate: 0deg;
  }
  25% {
    translate: 2px -12px;
    rotate: 95deg;
  }
  55% {
    translate: -3px -5px;
    rotate: 210deg;
  }
  80% {
    translate: 2px -10px;
    rotate: 310deg;
  }
  100% {
    translate: 0 0;
    rotate: 360deg;
  }
}
@keyframes flower-wander {
  0% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  30% {
    translate: 8px -16px;
    rotate: 125deg;
    scale: 1.08;
  }
  65% {
    translate: -5px -7px;
    rotate: 250deg;
    scale: 0.94;
  }
  100% {
    translate: 0 0;
    rotate: 360deg;
    scale: 1;
  }
}
@keyframes sticker-sway {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  25% {
    translate: -6px 3px;
    rotate: -9deg;
    scale: 1.04 0.97;
  }
  52% {
    translate: 9px -23px;
    rotate: 13deg;
    scale: 0.98 1.04;
  }
  80% {
    translate: -5px -7px;
    rotate: -6deg;
    scale: 1;
  }
}
@keyframes sticker-wave {
  0%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  25% {
    rotate: -24deg;
    translate: 5px -5px;
  }
  50% {
    rotate: 12deg;
    translate: -2px 2px;
  }
  75% {
    rotate: -18deg;
    translate: 3px -3px;
  }
}
@media (max-width: 760px) {
  .company-flower {
    right: 0;
  }
}
.icon-headless {
  background: var(--pink);
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
}
.icon-studio {
  background: #fff0f3;
  border-radius: 50% 50% 12px 12px;
  font-weight: 800;
}
@media (max-width: 760px) {
  .icon-headless {
    font-size: 17px;
  }
}
.icon-app {
  background: var(--pink);
  border-radius: 14px;
  font-size: 32px;
}
@media (max-width: 760px) {
  .icon-app {
    font-size: 23px;
    border-radius: 9px;
  }
}

.icon-ai {
  background: var(--pink);
  border-radius: 50%;
  font-size: 37px;
}
@media (max-width: 760px) {
  .icon-ai {
    font-size: 26px;
  }
}

.service-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .service-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* One of the hero characters hops out and becomes a travelling companion. */
.companion {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 140px;
  height: 119px;
  pointer-events: none;
  transform-origin: 50% 65%;
  will-change: transform;
  --look-x: 0px;
  --look-y: 0px;
}
.companion[hidden] {
  display: none;
}
.companion-play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: manipulation;
  filter: drop-shadow(0 5px 3px #55333a12);
}
.companion-play:active {
  cursor: grabbing;
}
.companion-character {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 65%;
}
.companion-eye {
  transform-box: fill-box;
  transform-origin: center;
  translate: var(--look-x) var(--look-y);
}
.companion-dismiss {
  display: none;
  position: absolute;
  right: 0;
  top: -5px;
  width: 28px;
  height: 28px;
  border: 1px solid #e0c5cb;
  border-radius: 50%;
  background: #ffffffed;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  pointer-events: auto;
  opacity: 0;
}
.companion.is-travelling .companion-dismiss {
  display: block;
}
.companion:hover .companion-dismiss,
.companion:focus-within .companion-dismiss {
  opacity: 1;
}
.companion-speech {
  position: absolute;
  right: 85%;
  bottom: 82%;
  padding: 9px 13px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px 16px 0 16px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--pink);
  opacity: 0;
  translate: 5px 7px;
  rotate: 4deg;
  pointer-events: none;
}
.companion.is-travelling.is-speaking .companion-speech {
  opacity: 1;
  translate: 0 0;
}
.companion.is-sleeping {
  --companion-play-state: paused;
}
@keyframes companion-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  28% {
    transform: translateY(-9px) rotate(5deg);
  }
  65% {
    transform: translateY(-3px) rotate(-5deg);
  }
}
@keyframes companion-blink {
  0%,
  44%,
  48%,
  100% {
    scale: 1 1;
  }
  46% {
    scale: 1 0.08;
  }
}
@media (max-width: 760px) {
  .companion-speech {
    font-size: 10px;
    padding: 8px 11px;
  }
  .companion-dismiss {
    opacity: 1;
    width: 26px;
    height: 26px;
    top: -9px;
  }
}
/* Small, independent facial motions keep the travelling character expressive. */
.companion-cheeks {
  opacity: 0.45;
}
.companion-mouth {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  translate: calc(var(--look-x) * 0.35) calc(var(--look-y) * 0.35);
}
.companion-mouth--laugh {
  opacity: 0;
  scale: 0.8;
}
.companion-wink {
  opacity: 0;
}
.companion.is-delighted .companion-mouth--smile {
  opacity: 0;
}
.companion.is-delighted .companion-mouth--laugh {
  opacity: 1;
  scale: 1;
}
.companion.is-delighted .companion-eye {
  scale: 1 0.18;
}
.companion.is-delighted .companion-wink {
  opacity: 0;
}
.companion.is-delighted .companion-cheeks {
  opacity: 0.85;
}
@keyframes companion-smile {
  0%,
  40%,
  70%,
  100% {
    scale: 1;
  }
  50%,
  60% {
    scale: 1.08 1.2;
  }
}
@keyframes companion-chat {
  from {
    scale: 1 0.65;
  }
  to {
    scale: 1.08 1.25;
  }
}
@keyframes companion-wink-eye {
  0%,
  24%,
  28%,
  60%,
  69%,
  100% {
    scale: 1;
  }
  26% {
    scale: 1 0.08;
  }
  62%,
  67% {
    scale: 1 0;
  }
}
@keyframes companion-wink-mark {
  0%,
  60%,
  69%,
  100% {
    opacity: 0;
  }
  62%,
  67% {
    opacity: 1;
  }
}
.companion-happy-eyes {
  opacity: 0;
}
.companion.is-delighted .companion-eye {
  opacity: 0;
}
.companion.is-delighted .companion-happy-eyes {
  opacity: 1;
}

.service-lp-link::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: .5em;
  vertical-align: -.1em;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3h7v7M21 3 10 14M10 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-start;
}

.icon-sns {
  background: var(--pink);
  border-radius: 50% 50% 50% 12px;
}

.reverse-name {
  display: inline-block;
  direction: rtl;
  unicode-bidi: bidi-override;
}

/* Shared text color for the pink contact surfaces (5.22:1 on #ee7589). */
:root {
  --contact-ink: #292929;
  --contact-button: #f393a4;
}
.contact,
.case-contact {
  --ink: var(--contact-ink);
  color: var(--contact-ink);
}
.contact-nav,
.contact-nav:hover,
.contact .form-submit,
.contact .form-submit:hover,
.contact .form-status,
.contact .preview-note,
.contact .preview-note span {
  color: var(--contact-ink);
}

/* One character, many possibilities. */
.little-friend {
  height: 125px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  display: block;
}
/* Keep the face with the shape, while the greeting remains easy to read. */
.friend-performer {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 54%;
}
.friend-silhouette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.friend-body {
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.friend-shadow {
  fill: var(--ink);
}
.friend-color {
  fill: var(--lime);
}
.little-friend .friend-eye {
  position: absolute;
  top: 48px;
  left: 52px;
}
.little-friend .friend-eye + .friend-eye {
  left: 76px;
}
.little-friend .friend-smile {
  top: 72px;
  left: 57px;
}
/* Each pose uses eight cubic curves, so outlines morph instead of switching. */
@keyframes friend-transform {
  0%, 5%, 100% {
    d: path('M60 12 C72 12 87.83 17.67 96 26 C104.17 34.33 107.67 49 109 62 C110.33 75 112.17 96.33 104 104 C95.83 111.67 74.67 108 60 108 C45.33 108 24.17 111.67 16 104 C7.83 96.33 9.67 75 11 62 C12.33 49 15.83 34.33 24 26 C32.17 17.67 48 12 60 12 Z');
  }
  12%, 17% {
    d: path('M60 12 C73.33 12 92 8 100 16 C108 24 108 45.33 108 60 C108 74.67 108 96 100 104 C92 112 73.33 108 60 108 C46.67 108 28 112 20 104 C12 96 12 74.67 12 60 C12 45.33 12 24 20 16 C28 8 46.67 12 60 12 Z');
  }
  24%, 29% {
    d: path('M60 12 C71.31 12 85.94 18.06 93.94 26.06 C101.94 34.06 108 48.69 108 60 C108 71.31 101.94 85.94 93.94 93.94 C85.94 101.94 71.31 108 60 108 C48.69 108 34.06 101.94 26.06 93.94 C18.06 85.94 12 71.31 12 60 C12 48.69 18.06 34.06 26.06 26.06 C34.06 18.06 48.69 12 60 12 Z');
  }
  36%, 41% {
    d: path('M60 8 C66 8 72 28.67 78 39 C84 49.33 91 59.83 96 70 C101 80.17 114 94.67 108 100 C102 105.33 76 102 60 102 C44 102 18 105.33 12 100 C6 94.67 19 80.17 24 70 C29 59.83 36 49.33 42 39 C48 28.67 54 8 60 8 Z');
  }
  48%, 53% {
    d: path('M60 5 C63.96 5 71.95 33.95 78 40 C84.05 46.05 115 55.6 115 60 C115 64.4 84.05 73.95 78 80 C71.95 86.05 63.96 115 60 115 C56.04 115 48.05 86.05 42 80 C35.95 73.95 5 64.4 5 60 C5 55.6 35.95 46.05 42 40 C48.05 33.95 56.04 5 60 5 Z');
  }
  60%, 65% {
    d: path('M60 30 C80.16 30 94.8 10.8 102 18 C109.2 25.2 90 39.84 90 60 C90 80.16 109.2 94.8 102 102 C94.8 109.2 80.16 90 60 90 C39.84 90 25.2 109.2 18 102 C10.8 94.8 30 80.16 30 60 C30 39.84 10.8 25.2 18 18 C25.2 10.8 39.84 30 60 30 Z');
  }
  72%, 77% {
    d: path('M60 5 C70.71 -0.95 71.71 21.01 78 29 C84.29 36.99 92.58 43.67 97 52 C101.42 60.33 106.04 69.33 104 78 C101.96 86.67 93.84 97.56 85 103 C76.16 108.44 62.71 111.53 52 110 C41.29 108.47 28.29 101.82 22 94 C15.71 86.18 8.54 79.13 15 64 C21.46 48.87 49.29 10.95 60 5 Z');
  }
  84%, 89% {
    d: path('M60 27 C76.56 22.68 88.28 25.58 98 29 C107.72 32.42 111.12 37.54 114 46 C116.88 54.46 117.06 67.36 114 76 C110.94 84.64 106.72 90.4 97 94 C87.28 97.6 75.66 97.08 60 96 C44.34 94.92 19.72 95.74 10 88 C0.28 80.26 -3 63.98 6 53 C15 42.02 43.44 31.32 60 27 Z');
  }
}
@keyframes friend-colors {
  0%, 5%, 100% { fill: #fff0f3; }
  12%, 17% { fill: #f9d0d7; }
  24%, 29% { fill: #fff1cf; }
  36%, 41% { fill: #dfedf4; }
  48%, 53% { fill: #f4d9f0; }
  60%, 65% { fill: #f9d0d7; }
  72%, 77% { fill: #dfeee5; }
  84%, 89% { fill: #fff1cf; }
}
/* Four turns per cycle, with short readable poses and squash before each leap. */
@keyframes friend-tumble {
  0% { rotate: 0deg; scale: 1; translate: 0 0; }
  5% { rotate: -12deg; scale: 1.12 .83; translate: -3px 5px; }
  12% { rotate: 360deg; scale: .93 1.1; translate: 4px -15px; }
  17% { rotate: 350deg; scale: 1; translate: 0 0; }
  24% { rotate: 370deg; scale: 1.04 .96; translate: -4px -5px; }
  29% { rotate: 360deg; scale: 1.13 .82; translate: 0 6px; }
  36% { rotate: 720deg; scale: .92 1.12; translate: 5px -18px; }
  41% { rotate: 732deg; scale: 1; translate: 0 -2px; }
  48% { rotate: 720deg; scale: 1.07 .95; translate: -5px 0; }
  53% { rotate: 708deg; scale: 1.14 .82; translate: 0 5px; }
  60% { rotate: 1080deg; scale: .94 1.1; translate: 3px -18px; }
  65% { rotate: 1092deg; scale: 1; translate: 0 0; }
  72% { rotate: 1080deg; scale: .96 1.06; translate: -4px -6px; }
  77% { rotate: 1068deg; scale: 1.12 .84; translate: 0 6px; }
  84% { rotate: 1440deg; scale: 1.08 .94; translate: 5px -15px; }
  89% { rotate: 1452deg; scale: .96 1.04; translate: 0 -2px; }
  100% { rotate: 1440deg; scale: 1; translate: 0 0; }
}
/* Small companions keep each process step lively without crowding its text. */
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}
.step-header > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.process-friend {
  width: 64px;
  height: 64px;
  flex: none;
  transform-origin: 50% 70%;
}
.process-friend svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mini-body {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.mini-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-eye {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: center;
}
.mini-idea,
.mini-sprout {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
@keyframes process-float {
  0%,
  100% {
    translate: 0 2px;
    rotate: -5deg;
  }
  30% {
    translate: 3px -9px;
    rotate: 7deg;
  }
  65% {
    translate: -3px -3px;
    rotate: -4deg;
  }
}
@keyframes process-think {
  0%,
  100% {
    translate: 0 1px;
    rotate: 6deg;
  }
  45% {
    translate: -3px -11px;
    rotate: -8deg;
  }
  75% {
    translate: 2px -4px;
    rotate: 3deg;
  }
}
@keyframes process-nod {
  0%,
  100% {
    rotate: -9deg;
    scale: 0.95;
  }
  50% {
    rotate: 12deg;
    scale: 1.07;
  }
}
@media (max-width: 760px) {
  .about-body p.lead {
    padding-right: 98px;
  }
  .process-friend {
    width: 58px;
    height: 58px;
  }
  .step-header {
    min-height: 54px;
  }
  .flow-grid h3 {
    margin-top: 12px;
  }
}
/* Motion is opt-in; reduced-motion users keep the static layout. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .desktop-nav a:after {
    transition: width 0.2s;
  }
  .contact-nav {
    transition:
      background 0.2s,
      transform 0.2s;
  }
  .circle-arrow {
    transition:
      transform 0.3s,
      background 0.3s;
  }
  .ticker div {
    animation: marquee 40s linear infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .service-icon {
    transition: transform 0.3s;
  }
  .expand {
    transition:
      transform 0.3s,
      background 0.3s;
  }
  .service-detail {
    animation: appear 0.25s ease;
    animation-play-state: var(--site-motion-state, running);
  }
  .work-image img {
    transition: transform 0.5s;
  }
  .form-submit {
    transition:
      background 0.2s,
      color 0.2s;
  }
  .reveal {
    transition:
      opacity 0.7s,
      transform 0.7s;
  }
  @media (max-width: 760px) {
    .menu-toggle > span {
      transition: transform 0.2s;
    }
  }
  .little-friend {
    animation: friend-sway 2.6s ease-in-out -1.8s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .friend-eye {
    animation: friend-blink 6.1s linear -3.2s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .service-icon {
    animation: service-bob 2.8s ease-in-out -2s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .icon-cms {
    animation-duration: 8.6s;
    animation-delay: -5.1s;
  }
  .icon-code {
    animation-duration: 6.7s;
    animation-delay: -3.5s;
  }
  .icon-design {
    animation-name: service-twirl;
    animation-duration: 4.8s;
    animation-delay: -2s;
  }
  .icon-grow {
    animation-duration: 2.5s;
    animation-delay: -1.3s;
  }
  .company-flower {
    animation: flower-wander 6s ease-in-out -4.2s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .contact-sticker {
    animation: sticker-sway 3.2s ease-in-out -2.6s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .contact-sticker > span {
    animation: sticker-wave 2.2s ease-in-out -1.4s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .little-friend,
  .service-icon,
  .company-flower,
  .contact-sticker {
    animation-play-state: paused;
  }
  .motion-active {
    animation-play-state: var(--site-motion-state, running);
  }
  .little-friend:not(.motion-active) .friend-eye,
  .contact-sticker:not(.motion-active) > span {
    animation-play-state: paused;
  }
  .icon-headless {
    animation-duration: 9.1s;
    animation-delay: -3.7s;
  }
  .icon-studio {
    animation-duration: 7.7s;
    animation-delay: -5.4s;
  }
  .icon-app {
    animation-duration: 3.1s;
    animation-delay: -1.4s;
  }

  .icon-ai {
    animation-name: service-bob;
    animation-duration: 2.7s;
    animation-delay: -1.9s;
  }
  .companion-character {
    animation: companion-float 2.8s ease-in-out -0.7s infinite;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion-eye {
    animation: companion-blink 6.3s linear -2s infinite;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion-dismiss {
    transition: opacity 0.2s;
  }
  .companion-speech {
    transition:
      opacity 0.22s,
      translate 0.3s;
  }
  .companion-cheeks {
    transition: opacity 0.25s;
  }
  .companion-mouth--smile {
    animation: companion-smile 8s ease-in-out infinite;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion-mouth--laugh {
    transition:
      opacity 0.15s,
      scale 0.2s;
  }
  .companion-wink {
    animation: companion-wink-mark 11s linear -1s infinite;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion-eye--right {
    animation: companion-wink-eye 11s linear -1s infinite;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion.is-speaking .companion-mouth--smile {
    animation: companion-chat 0.55s ease-in-out infinite alternate;
    animation-play-state: var(--companion-play-state, var(--site-motion-state, running));
  }
  .companion.is-delighted .companion-eye {
    animation: none;
    transition: scale 0.15s;
  }
  .companion.is-delighted .companion-wink {
    animation: none;
  }
  .little-friend {
    animation-duration: 4.6s;
  }
  .friend-body {
    animation: friend-transform 16s cubic-bezier(0.45, 0, 0.25, 1) infinite;
    animation-play-state: paused;
  }
  .friend-color {
    animation-name: friend-transform, friend-colors;
    animation-duration: 16s, 16s;
  }
  .friend-performer {
    animation: friend-tumble 16s cubic-bezier(.45, 0, .25, 1) infinite;
    animation-play-state: paused;
  }
  .little-friend.motion-active :is(.friend-body, .friend-performer) {
    animation-play-state: var(--site-motion-state, running);
  }
  .process-friend {
    animation: process-float 3.8s ease-in-out -0.8s infinite;
    animation-play-state: paused;
  }
  .process-friend--think {
    animation-name: process-think;
    animation-duration: 4.7s;
    animation-delay: -2.2s;
  }
  .process-friend--grow {
    animation-duration: 4.3s;
    animation-delay: -1.7s;
  }
  .mini-eye {
    animation: friend-blink 5.7s linear -1s infinite;
    animation-play-state: paused;
  }
  .mini-idea,
  .mini-sprout {
    animation: process-nod 3s ease-in-out -0.5s infinite;
    animation-play-state: paused;
  }
  .process-friend--think .mini-eye {
    animation-delay: -3.4s;
  }
  .process-friend--grow .mini-eye {
    animation-delay: -4.2s;
  }
  .process-friend.motion-active,
  .process-friend.motion-active :is(.mini-eye, .mini-idea, .mini-sprout) {
    animation-play-state: var(--site-motion-state, running);
  }
}
