@font-face {
  font-family: Cat Editorial;
  src: url("../fonts/graphik-font/Graphik-Regular-Web.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Cat Editorial;
  src: url("../fonts/graphik-font/Graphik-Semibold-Web.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --cat-bg: #171321;
  --cat-surface: #211b2e;
  --cat-text: #f8f4ff;
  --cat-muted: #d4c9df;
  --cat-accent: #decaff;
  --cat-ink: #191526;
  --cat-paper: #f7f4eb;
  --cat-line: #e4d1fc38;
  --cat-gutter: clamp(1.125rem, 4.3vw, 4.75rem);
  --cat-width: 1440px;
  --cat-font: Cat Editorial, "Segoe UI", Arial, sans-serif;
  --cat-title: clamp(2.65rem, 6.3vw, 6.65rem);
  --cat-section: clamp(2.1rem, 4.4vw, 4.3rem);
  --cat-space: clamp(2.5rem, 6vw, 6.25rem);
}

body.cc-theme {
  margin: 0;
  color-scheme: dark;
  color: var(--cat-text);
  background: var(--cat-bg);
  font-family: var(--cat-font);
}

.cc-theme *, .cc-theme *::before, .cc-theme *::after { box-sizing: border-box; }
.cc-theme a { color: inherit; }
.cc-theme :focus-visible { outline: 2px solid var(--cat-accent); outline-offset: 5px; }
.cc-theme [id] { scroll-margin-top: 1.5rem; }
.cc-theme .cc-site-bar .cc-site-inner,
.cc-shell, .cc-theme > main.wrap, .cc-service-page .cc-frame, .cc-theme .portfolio-wrap,
.cc-detail .wrap {
  width: min(calc(100% - 2 * var(--cat-gutter)), var(--cat-width));
  margin-inline: auto;
}

.cc-theme .cc-site-bar .cc-site-inner { min-height: 72px; }
.cc-theme .cc-site-bar .cc-site-menu a,
.cc-theme .cc-site-bar .cc-menu-trigger { color: var(--cat-text); }
.cc-theme .cc-site-bar .cc-site-menu a[aria-current],
.cc-theme .cc-site-bar .cc-site-menu a:hover { color: var(--cat-accent); }
.cc-theme .cc-site-bar .cc-site-logo img { filter: none; }
.cc-theme .cc-site-bar .cc-site-menu a:focus-visible { outline-color: var(--cat-accent); }
.cc-theme .cc-site-bar:not(.cc-site-bar--overlay) { border-bottom: 1px solid var(--cat-line); }
.cc-theme .cc-site-fallback { border-bottom: 1px solid var(--cat-line); }
.cc-site-fallback .cc-shell, .cc-site-footer .cc-shell {
  display: flex;
  align-items: center;
  gap: .75rem 1.5rem;
  min-height: 72px;
  padding-block: .65rem;
}

.cc-site-fallback .cc-shell { justify-content: space-between; }
.cc-site-fallback img { display: block; width: 88px; height: auto; }
.cc-site-fallback nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; font-size: .875rem; }
.cc-site-fallback a { text-decoration: none; }
.cc-site-fallback a[aria-current] { color: var(--cat-accent); }
.cc-site-footer { border-top: 1px solid var(--cat-line); color: var(--cat-muted); }
.cc-site-footer .cc-shell { flex-wrap: wrap; font-size: .875rem; }
.cc-site-footer span { margin-right: auto; }
.cc-site-footer a { text-underline-offset: .26em; }

.cc-theme .cc-hero {
  display: grid;
  grid-template-columns: minmax(8rem, .26fr) minmax(0, 1fr);
  gap: clamp(.85rem, 4vw, 4rem);
  padding-block: clamp(2.4rem, 5.5vw, 5.7rem) clamp(1.75rem, 4vw, 4rem);
}

.cc-theme .cc-eyebrow { color: var(--cat-accent); margin: .35rem 0 0; font-size: .9375rem; font-weight: 600; }
.cc-theme .cc-hero h1, .cc-theme .services-hero h1, .cc-theme .case-heading h1, .cc-theme .cc-reading > h1 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--cat-title);
  line-height: .99;
  letter-spacing: -.063em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cc-theme .cc-lead, .cc-theme .cc-reading > .lede {
  max-width: 46ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.45rem);
  color: var(--cat-muted);
  line-height: 1.5;
}

.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.cc-theme .cc-cta, .cc-theme .services-button, .cc-theme .contact-link, .cc-theme .cc-reading .button, .cc-theme.cc-detail .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: .65rem 1.2rem;
  border: 1px solid var(--cat-accent);
  border-radius: 999px;
  color: var(--cat-ink) !important;
  background: var(--cat-accent);
  font: 600 1rem/1.25 var(--cat-font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.cc-theme .cc-cta:hover, .cc-theme .services-button:hover, .cc-theme .contact-link:hover, .cc-theme .cc-reading .button:hover, .cc-theme.cc-detail .button:hover {
  background: #efe2ff;
  border-color: #efe2ff;
}

.cc-theme .cc-cta-secondary { background: transparent !important; color: var(--cat-text) !important; border-color: var(--cat-line); }
.cc-theme .cc-cta-secondary:hover { border-color: var(--cat-accent); }
.cc-theme .cc-text-action { text-underline-offset: .25em; }
.cc-illustration { margin: 0; overflow: hidden; background: var(--cat-surface); aspect-ratio: 1.94; }
.cc-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-studio { padding-bottom: var(--cat-space); }
.cc-studio-section { padding-block: var(--cat-space); border-bottom: 1px solid var(--cat-line); }
.cc-studio-section h2, .cc-theme .cc-reading section > h2 {
  font-size: var(--cat-section);
  line-height: 1.05;
  letter-spacing: -.052em;
  margin: 0 0 1.25rem;
}

.cc-studio-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 5vw, 5.5rem); align-items: start; }
.cc-studio-columns p { color: var(--cat-muted); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.55; margin: 0; }
.cc-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0 0; }
.cc-values > div { border-top: 1px solid var(--cat-line); padding-block: .85rem; }
.cc-values dt { font-weight: 600; font-size: 1.15rem; }
.cc-values dd { color: var(--cat-muted); margin: .45rem 0 0; }
.cc-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.cc-partners img { display: block; max-width: min(12rem, 45%); max-height: 5rem; object-fit: contain; }
.cc-contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.cc-contact-split .cc-illustration { aspect-ratio: 1.23; }
.cc-contact-split .cc-hero { display: block; padding: 0; }
.cc-contact-split .cc-eyebrow { margin-bottom: 1rem; }
.cc-contact-page { padding-block: var(--cat-space); }
.cc-theme .cc-contact-page h1 { max-width: 13ch; }
.cc-contact-email { font-size: clamp(1.05rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.cc-contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1.25rem; margin: 2rem 0 0; }
.cc-contact-details > div { border-top: 1px solid var(--cat-line); padding-top: .75rem; min-width: 0; }
.cc-contact-details dt { color: var(--cat-muted); font-size: .875rem; }
.cc-contact-details dd { margin: .25rem 0 0; }
.cc-contact-details a { text-underline-offset: .25em; }

.cc-theme .cc-reading { padding-block: var(--cat-space); }
.cc-theme .cc-reading > .lede { margin-bottom: 2rem; }
.cc-theme .cc-reading .prose { color: var(--cat-text); max-width: 71ch; }
.cc-theme .cc-reading .prose p, .cc-theme .cc-reading .card p, .cc-theme .cc-reading .card-date,
.cc-theme .cc-reading .article-date, .cc-theme .cc-reading .cover-credit { color: var(--cat-muted); }
.cc-theme .cc-reading .directory { border-color: var(--cat-line); }
.cc-theme .cc-reading .directory a, .cc-theme .cc-reading .tag, .cc-theme .cc-reading .source-note a { color: var(--cat-accent); }
.cc-theme .cc-reading .card { background: var(--cat-surface); border: 1px solid var(--cat-line); border-radius: .85rem; }
.cc-theme .cc-reading .card::before { display: none; }
.cc-theme .cc-reading .card:hover { border-color: var(--cat-accent); }
.cc-theme .cc-policy .prose section { padding-top: 1.35rem; border-top: 1px solid var(--cat-line); }
.cc-theme .cc-policy .prose h2 { font-size: clamp(1.5rem, 3vw, 2.65rem); }
.cc-theme .cc-release-breadcrumbs a { color: var(--cat-accent); }
.cc-theme.cc-release-page > main.wrap { width: 100%; }
.cc-theme .cc-reading .form { color: var(--cat-text); background: var(--cat-surface); border-color: var(--cat-line); border-radius: .85rem; }
.cc-theme .cc-reading .form :is(input:not([type=checkbox]), textarea, select) { background: var(--cat-bg); border-color: #ccbbdf75; }

.cc-theme.cc-detail { --line: var(--cat-line); --muted: var(--cat-muted); --tone: var(--cat-accent); }
.cc-theme.cc-detail .hero { background: none; border-color: var(--cat-line); }
.cc-theme.cc-detail .hero .wrap { min-height: 0; padding-block: var(--cat-space); }
.cc-theme.cc-detail h1 { font-size: var(--cat-title); font-weight: 600; }
.cc-theme.cc-detail h2 { font-size: var(--cat-section); font-weight: 600; }
.cc-theme.cc-detail .hero .cover { box-shadow: none; }
.cc-theme.cc-detail .cover { border-radius: 0; }
.cc-theme.cc-detail .workflow { background: var(--cat-surface); }
.cc-theme.cc-detail .closing { background: var(--cat-surface); border-radius: .85rem; }

.cc-theme.cc-web-service .web-service-hero .wrap {
  display: block;
  padding-block: clamp(2.3rem, 5.5vw, 5.6rem) var(--cat-space);
}
.cc-web-service .web-service-heading {
  display: grid;
  grid-template-columns: minmax(8rem, .25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.9rem, 4vw, 4rem);
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}
.cc-web-service .web-service-heading h1 { margin-top: 0; max-width: 17ch; }
.cc-web-service .web-service-heading > .label { margin-top: .45rem; line-height: 1.4; }
.cc-web-service .web-service-visual {
  aspect-ratio: 1.6;
  overflow: hidden;
  background: var(--cat-surface);
}
.cc-web-service .web-service-visual--hero { aspect-ratio: 1.95; }
.cc-web-service .web-service-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cc-theme.cc-service-page { --service-paper: var(--cat-bg); --service-ink: var(--cat-ink); --service-rule: var(--cat-line); }
.cc-theme.cc-service-page .services-lead, .cc-theme.cc-service-page .services-card p { color: var(--cat-muted); }
.cc-theme.cc-service-page .services-kicker { color: var(--cat-accent); }
.cc-theme.cc-service-page .services-card:target { border-color: var(--cat-accent); }
.cc-theme.cc-service-page .services-contact,
.cc-theme.portfolio .project-contact { background: var(--cat-accent); }
.cc-theme.cc-service-page .services-demo-section, .cc-theme.cc-service-page .services-contact,
.cc-theme.portfolio .project-contact { color: var(--cat-ink); color-scheme: light; }
.cc-theme .services-contact .services-button, .cc-theme .project-contact .contact-link { background: var(--cat-ink); color: var(--cat-text) !important; border-color: var(--cat-ink); }
.cc-theme .services-contact .services-button:hover, .cc-theme .project-contact .contact-link:hover { background: #322247; border-color: #322247; }
.cc-theme.portfolio .directory-heading > p, .cc-theme.portfolio .featured-caption .eyebrow,
.cc-theme.portfolio .heading-aside .eyebrow, .cc-theme.portfolio .next-section h2 { color: var(--cat-accent); }
.cc-theme.portfolio .paper { color-scheme: light; }
.cc-theme.cc-homepage .mainTitle, .cc-theme.cc-homepage .swiper-slide .title { font-family: var(--cat-font); }
.cc-theme.cc-homepage .mainTitle { letter-spacing: -.055em; }
.cc-theme.cc-homepage nav.cc-quick a { border-color: #decaff9c; }

.cc-theme.cc-bot { color: var(--ink); color-scheme: light; background: var(--paper); }
.cc-theme.cc-bot .cc-site-bar, .cc-theme.cc-bot > footer { background: var(--cat-bg); color: var(--cat-text); }
.cc-theme.cc-bot > footer .brand img { filter: none; }
.cc-theme.cc-bot .shell { width: min(calc(100% - 2 * var(--cat-gutter)), var(--cat-width)); }

@media (max-width: 760px) {
  .cc-web-service .web-service-heading { grid-template-columns: 1fr; }
  .cc-web-service .web-service-visual--hero { aspect-ratio: 1.5; }
  .cc-theme .cc-hero, .cc-studio-columns, .cc-contact-split { grid-template-columns: 1fr; }
  .cc-theme .cc-hero h1, .cc-theme .services-hero h1, .cc-theme .case-heading h1,
  .cc-theme .cc-reading > h1, .cc-theme.cc-detail h1 { font-size: clamp(2.45rem, 9.7vw, 4.5rem); }
  .cc-illustration { aspect-ratio: 1.46; }
  .cc-contact-split .cc-illustration { aspect-ratio: 1.46; }
}

@media (max-width: 700px) {
  .cc-theme .cc-site-bar .cc-site-inner { min-height: 64px; }
  .cc-theme .cc-site-bar .cc-site-menu { background: var(--cat-bg) !important; }
  .cc-theme .cc-site-bar .cc-site-menu a { border-color: var(--cat-line); }
  .cc-site-fallback img { width: 73px; max-width: none; }
  .cc-site-fallback nav { gap: .35rem .8rem; }
}

@media (max-width: 420px) { .cc-values, .cc-contact-details { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
  .cc-theme .cc-hero, .cc-theme .cc-reading > h1 { animation: cat-heading-in .55s cubic-bezier(.2,.7,.2,1) both; }
  .cc-illustration img { animation: cat-art-in .9s cubic-bezier(.2,.7,.2,1) both; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-theme .cc-cta, .cc-theme .services-button, .cc-theme .contact-link { transition: none; }
  .cc-theme.cc-detail .text { scroll-behavior: auto; }
}

@keyframes cat-heading-in {
  from { opacity: .45; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cat-art-in { from { transform: scale(1.06); } to { transform: scale(1); } }

.cc-motion-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(7.5rem, 17vw, 11rem);
  border-top: 1px solid var(--cat-line);
}

.cc-bot .cc-motion-panel { border-color: #29204338; }
.cc-motion-control { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .875rem; }
.cc-motion-control input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--cat-accent); }

.cc-cat {
  --cat-mascot-outline: #28213b;
  --cat-mascot-fill: #ddc7ff;
  position: relative;
  isolation: isolate;
  width: 6rem;
  height: 5.3rem;
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cc-cat:disabled { cursor: default; }

.cc-cat-ear {
  position: absolute;
  inset-block-start: .4rem;
  width: 1.85rem;
  height: 2.05rem;
  background: var(--cat-mascot-fill);
  border: .16rem solid var(--cat-mascot-outline);
  border-radius: .3rem 1.1rem .2rem .2rem;
}

.cc-cat-ear-left { left: 1rem; transform: rotate(-14deg); }
.cc-cat-ear-right { right: 1rem; transform: scaleX(-1) rotate(-14deg); }
.cc-cat-face {
  position: absolute;
  inset: 1.3rem .5rem .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  padding-bottom: .6rem;
  border-radius: 43% 43% 47% 47%;
  border: .16rem solid var(--cat-mascot-outline);
  background: var(--cat-mascot-fill);
}

.cc-cat-face::before, .cc-cat-face::after {
  content: "";
  position: absolute;
  top: 67%;
  width: .85rem;
  height: .3rem;
  border-block: .09rem solid var(--cat-mascot-outline);
}
.cc-cat-face::before { left: -.55rem; transform: rotate(9deg); }
.cc-cat-face::after { right: -.55rem; transform: rotate(-9deg); }
.cc-cat-eye {
  display: grid;
  place-items: center;
  width: 1.56rem;
  height: 1.76rem;
  overflow: hidden;
  border-radius: 50%;
  border: .12rem solid var(--cat-mascot-outline);
  background: #fff8ee;
}
.cc-cat-eye i {
  display: block;
  width: .57rem;
  height: .74rem;
  border-radius: 50%;
  background: var(--cat-mascot-outline);
  transform: translate(var(--eye-x, 0), var(--eye-y, 0));
}
.cc-cat-nose {
  position: absolute;
  bottom: .45rem;
  width: .39rem;
  height: .3rem;
  border-radius: 45% 45% 65% 65%;
  background: #a34a86;
}

.case-walkthrough {
  background: var(--art);
  color: #231b35;
  margin-bottom: clamp(2rem, 5.5vw, 5rem);
  padding: clamp(1.15rem, 4vw, 4rem);
}
.case-walkthrough h2 { font-size: clamp(1.55rem, 3.5vw, 3.25rem); letter-spacing: -.045em; line-height: 1.06; }
.case-walkthrough ol { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.case-walkthrough li {
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: #fff8ed;
  padding: clamp(.9rem, 2vw, 1.5rem);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  border-radius: .75rem;
}
.case-walkthrough li::after { content: ""; width: 45%; height: .28rem; border-radius: 1rem; background: #4933a2; }
.case-walkthrough li:nth-child(2)::after { width: 72%; }
.case-walkthrough li:nth-child(3)::after { width: 100%; }
.next-card .project-image { position: relative; }
.next-card .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 4rem #16132245;
}

@media (max-width: 700px) {
  .case-walkthrough ol { grid-template-columns: 1fr; }
  .case-walkthrough li { min-height: 0; }
  .cc-motion-panel { min-height: 7.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-cc-motion-off]) .cc-opening-media:not(.cc-motion-shown) { clip-path: inset(9% 8% 15% round 1.4rem); }
  html:not([data-cc-motion-off]) .cc-opening-media.cc-motion-shown:not(.cc-cover-travelling) {
    animation: cc-open-cover .88s cubic-bezier(.19,.76,.25,1) both;
  }
  html:not([data-cc-motion-off]) .cc-opening-media > img { animation: none; }
  html:not([data-cc-motion-off]) .cc-opening-media.cc-motion-shown:not(.cc-cover-travelling) > img {
    animation: cc-cover-settle 1.15s cubic-bezier(.19,.76,.25,1) backwards;
  }
  html:not([data-cc-motion-off]) .cc-motion-rise:not(:focus-within) {
    transition: opacity .62s ease, transform .78s cubic-bezier(.18,.68,.26,1);
  }
  html:not([data-cc-motion-off]) .cc-motion-rise:not(.cc-motion-shown):not(:focus-within) {
    opacity: .58;
    transform: translateY(1.2rem);
  }
  html:not([data-cc-motion-off]) .case-walkthrough.cc-motion-shown li { animation: cat-heading-in .55s both; }
  html:not([data-cc-motion-off]) .case-walkthrough.cc-motion-shown li:nth-child(2) { animation-delay: .14s; }
  html:not([data-cc-motion-off]) .case-walkthrough.cc-motion-shown li:nth-child(3) { animation-delay: .28s; }
  html:not([data-cc-motion-off]) .cc-cat-wink { animation: cc-cat-nod .52s ease; }
  html:not([data-cc-motion-off]) .cc-cat-wink .cc-cat-eye + .cc-cat-eye { animation: cc-cat-blink .4s ease; }
  html.cc-leaving::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483650;
    background: linear-gradient(0deg, #181322 86%, #decaff);
    pointer-events: none;
    animation: cc-page-shutter .27s cubic-bezier(.68,.04,.46,1) both;
  }
  .cc-cover-flight {
    position: fixed;
    z-index: 2147483651;
    inset: auto;
    overflow: hidden;
    pointer-events: none;
    animation: cc-cover-flight .55s cubic-bezier(.64,.03,.25,1) both;
  }
  .cc-cover-flight img { display: block; width: 100%; height: 100%; object-fit: cover; }
  ::view-transition-group(cc-travel-cover) { animation-duration: .68s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
  ::view-transition-old(cc-travel-cover), ::view-transition-new(cc-travel-cover) { height: 100%; object-fit: cover; }
}

html[data-cc-motion-off] .cc-theme:not(.cc-homepage) :is(main *, .cc-cat, .cc-cat *) {
  animation: none !important;
  transition: none !important;
}
html[data-cc-motion-off]::view-transition-group(*) { animation-duration: 0s !important; }

@keyframes cc-open-cover { from { clip-path: inset(9% 8% 15% round 1.4rem); } to { clip-path: inset(0); } }
@keyframes cc-cover-settle { from { transform: scale(1.12) translateY(-2%); } to { transform: scale(1); } }
@keyframes cc-cat-blink { 0%, 100% { transform: scaleY(1); } 43%, 57% { transform: scaleY(.12); } }
@keyframes cc-cat-nod { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-8deg); } }
@keyframes cc-page-shutter { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes cc-cover-flight {
  from { left: var(--flight-left); top: var(--flight-top); width: var(--flight-width); height: var(--flight-height); }
  to { left: 0; top: 0; width: 100vw; height: 100dvh; }
}
