/* hero */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4.25rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 0;
}
.hero-glow {
  position: absolute;
  inset: -25% -15% auto auto;
  width: 75vw;
  height: 100%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  gap: var(--s-5);
  align-items: center;
  align-content: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.lede {
  font-size: var(--fs-body-lg);
  color: var(--text-dim);
  margin-top: var(--s-4);
  max-width: 54ch;
}
.hero .actions {
  margin-top: var(--s-5);
}
.hero-mark {
  position: relative;
  justify-self: center;
  width: min(100%, 21rem);
}
.hero-mark::before {
  content: '';
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(92, 225, 230, 0.7) 80%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.hero-mark::after {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--hairline);
}
.hero-mark img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 24px 48px -24px rgba(0, 0, 0, 0.9);
}
.ticker {
  border-block: 1px solid var(--hairline);
  background: rgba(13, 17, 23, 0.55);
  padding: 0.25rem max(var(--margin), calc((100% - var(--content-max)) / 2), env(safe-area-inset-left, 0));
}
.track {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.track li {
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.95rem 1.75rem 0.95rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.track li:not(:last-child)::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  background: var(--brand);
  transform: rotate(45deg);
}
/* sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .section {
    padding: 6rem 0;
  }
}
.section h2 {
  margin-bottom: var(--s-5);
}
/* cards (glass, specular top edge, cursor light) */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(22, 29, 38, 0.8), rgba(13, 17, 23, 0.8));
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  transition: border-color var(--dur) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.4), transparent);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(56, 189, 248, 0.13),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(135, 212, 230, 0.35);
  }
  .card:hover::after {
    opacity: 1;
  }
}
.bento {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-4);
  }
  .c-web {
    grid-column: span 7;
  }
  .c-logo {
    grid-column: span 5;
  }
  .c-ai {
    grid-column: span 5;
  }
  .c-game {
    grid-column: span 7;
  }
}
.bento .card {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
@media (min-width: 900px) {
  .bento .card {
    padding: 2rem;
  }
}
.bento p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.bento a {
  margin-top: auto;
  padding-top: var(--s-3);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
}
.bento a:hover {
  color: #fff;
}
.viz {
  height: 9.5rem;
  margin-bottom: var(--s-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: rgba(7, 9, 14, 0.6);
  padding: var(--s-3);
  overflow: hidden;
  position: relative;
}
.bar3 {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}
.bar3 i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.viz-web b {
  display: block;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--line);
  margin-bottom: 0.7rem;
  width: 72%;
}
.viz-web b:nth-of-type(2) {
  width: 48%;
}
.viz-web b:nth-of-type(3) {
  width: 60%;
  background: rgba(135, 212, 230, 0.4);
}
.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}
.blocks u {
  height: 3.2rem;
  border-radius: 4px;
  background: var(--line);
}
.blocks u:first-child {
  background: rgba(56, 189, 248, 0.25);
}
.viz-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-logo span {
  width: 5.5rem;
  height: 5.5rem;
  border: 1.5px solid var(--brand);
  margin-inline: -1rem;
  mix-blend-mode: screen;
}
.viz-logo span:nth-child(1) {
  border-radius: 50%;
}
.viz-logo span:nth-child(2) {
  transform: rotate(45deg);
  border-color: var(--secondary);
}
.viz-logo span:nth-child(3) {
  border-radius: var(--r-sm);
  border-color: var(--chrome);
  opacity: 0.7;
}
.viz-ai {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
}
.viz-ai p {
  max-width: 80%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.viz-ai .in {
  background: var(--membrane);
  color: var(--text-dim);
  align-self: flex-start;
}
.viz-ai .out {
  background: rgba(56, 189, 248, 0.18);
  color: #dff4ff;
  align-self: flex-end;
}
.dots {
  align-self: flex-start;
  display: flex;
  gap: 0.3rem;
  background: var(--membrane);
  padding: 0.7rem 0.85rem !important;
}
.dots i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--text-mute);
}
.viz-game {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.dpad {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
}
.dpad::before,
.dpad::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
  border-radius: 3px;
}
.dpad::before {
  left: 35%;
  right: 35%;
  top: 0;
  bottom: 0;
}
.dpad::after {
  top: 35%;
  bottom: 35%;
  left: 0;
  right: 0;
}
.pill {
  width: 3rem;
  height: 0.6rem;
  border-radius: 99px;
  background: var(--line);
}
.btns {
  display: grid;
  grid-template-columns: repeat(2, 1.5rem);
  gap: 0.5rem;
  transform: rotate(45deg);
}
.btns u {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--line);
}
.btns u:first-child {
  background: rgba(56, 189, 248, 0.4);
}
/* founder */
.founder .lede {
  margin-top: 0;
}
.trio {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}
.trio li {
  padding: var(--s-4) 0;
  font: 800 clamp(1.25rem, 3vw, 2.25rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--chrome);
}
.trio li + li {
  padding-left: var(--s-4);
  border-left: 1px solid var(--hairline);
}
/* work */
.panel {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-4);
  align-items: center;
}
@media (min-width: 900px) {
  .panel {
    grid-template-columns: 1.1fr 0.9fr;
    padding: var(--s-5);
  }
}
.panel p {
  color: var(--text-dim);
  margin-top: var(--s-2);
}
.frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--membrane);
  padding: 0.9rem;
  aspect-ratio: 16/10;
}
.frame span {
  display: block;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--line);
  margin-bottom: 0.8rem;
  width: 70%;
}
.frame span:nth-of-type(2) {
  width: 50%;
}
.frame span:nth-of-type(3) {
  width: 62%;
  background: rgba(135, 212, 230, 0.4);
}
/* cta */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background:
    linear-gradient(var(--onyx), var(--onyx)) padding-box,
    var(--rim) border-box;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-panel > * {
  position: relative;
}
.cta-panel .lede {
  margin-top: var(--s-3);
}
.cta-panel .actions {
  margin-top: var(--s-5);
}

/* contact */
.h1-md {
  font-size: var(--fs-xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.contact {
  border-top: 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.contact > .wrap {
  width: 100%;
}
.contact-grid {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--s-6);
  }
}
.contact .lede {
  margin-top: var(--s-3);
}
.form {
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 900px) {
  .form {
    padding: 2rem;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--onyx);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  min-height: 2.75rem;
  transition: border-color var(--dur-fast);
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  outline-offset: 1px;
  border-color: var(--primary);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.err {
  color: #ff8fa3;
  font-size: var(--fs-sm);
  min-height: 0;
}
.err:empty {
  display: none;
}
.check label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
.check input {
  width: 1.1rem;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex: none;
}
.check a {
  color: var(--brand);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  font-size: var(--fs-body);
  min-height: 1.5em;
}
.status.ok {
  color: var(--success);
}
.status.bad {
  color: #ff8fa3;
}

/* legal pages */
.legal {
  border-top: 0;
}
.legal .doc {
  max-width: 46rem;
}
.legal h1 {
  font-size: var(--fs-xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: none;
}
.legal .updated {
  color: var(--text-mute);
  font-size: var(--fs-sm);
  margin-top: var(--s-2);
}
.legal h2 {
  font-size: var(--fs-md);
  margin: var(--s-5) 0 var(--s-2);
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: none;
}
.legal p + p {
  margin-top: var(--s-2);
}
.legal ul {
  margin: var(--s-2) 0;
  padding-left: 1.25rem;
}
.legal li {
  margin-bottom: 0.4rem;
}
.legal a {
  color: var(--brand);
}
.legal code {
  font-family: var(--font-code);
  font-size: 0.85em;
  color: var(--chrome);
}

/* 3D hero */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.hero-mark.live .hero-canvas {
  opacity: 1;
}
.hero-mark img {
  transition: opacity 600ms var(--ease);
}
.hero-mark.live img {
  opacity: 0;
}

/* flip control */
.flip-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.flip-hint {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.hero-mark.live .flip-hint {
  opacity: 1;
}
.hero-mark.flipped-once .flip-hint {
  opacity: 0;
}

/* 404 page */
.notfound {
  min-height: calc(100dvh - 14rem);
  display: grid;
  align-items: center;
}
.notfound .code {
  margin: 0 0 var(--s-4);
  font: 800 clamp(5rem, 18vw, 11rem)/0.9 var(--font-display);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand), var(--primary) 60%, rgba(56, 189, 248, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound .lede {
  margin: var(--s-3) 0 var(--s-4);
  max-width: 34rem;
}

/* Founder */
.founder-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .founder-grid {
    grid-template-columns: minmax(16rem, 24rem) 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}
.portrait {
  position: relative;
  margin: 0;
  max-width: 22rem;
  border-radius: var(--r-md);
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(135, 212, 230, 0.7),
    rgba(56, 189, 248, 0.15) 45%,
    rgba(226, 232, 240, 0.06)
  );
}
.portrait::before {
  content: '';
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.18), transparent);
  filter: blur(10px);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: calc(var(--r-md) - 1px);
}
.portrait figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--r-sm);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.portrait figcaption strong {
  font: 700 1rem/1.2 var(--font-display);
  color: #fff;
}
.portrait figcaption span {
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.founder-copy .lede {
  margin: var(--s-3) 0 var(--s-2);
  color: var(--text);
}
.founder-copy p:not(.lede) {
  max-width: 36rem;
  color: var(--text-dim);
}
.founder-copy .actions {
  margin-top: var(--s-4);
}

/* WhatsApp */
.wa-link {
  gap: 0.55rem;
}
.wa-icon {
  flex: none;
}
.wa-card {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--r-md);
  background: rgba(37, 211, 102, 0.06);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}
.wa-card p {
  margin: 0;
  color: var(--text-dim);
}
.wa-card .wa-icon {
  color: #25d366;
}
.nowrap {
  white-space: nowrap;
}
.wa-fab {
  position: fixed;
  z-index: 70;
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.1rem 0 0.95rem;
  border-radius: 99px;
  background: #25d366;
  color: #04210f;
  font: 700 0.9375rem/1 var(--font-body);
  text-decoration: none;
  box-shadow:
    0 12px 30px -10px rgba(37, 211, 102, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition:
    transform 160ms var(--ease),
    box-shadow 200ms var(--ease);
}
.wa-fab .wa-icon {
  width: 1.5rem;
  height: 1.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 36px -10px rgba(37, 211, 102, 0.75),
      0 4px 12px rgba(0, 0, 0, 0.4);
  }
}
.wa-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .wa-fab {
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }
  .wa-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
.founder {
  overflow-x: clip;
}
@media (max-width: 899px) {
  .portrait {
    max-width: min(100%, 19rem);
  }
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  counter-reset: none;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
  }
}
.step {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.step .num {
  font: 800 2.5rem/1 var(--font-display);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-2);
}
.step p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .faq-intro {
    position: sticky;
    top: 6rem;
  }
}
.faq-intro h2 {
  margin-bottom: 0;
}
.faq-intro .lede a {
  color: var(--brand);
}
.faq-list {
  border-top: 1px solid var(--hairline);
}
.qa {
  border-bottom: 1px solid var(--hairline);
}
.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 1.25rem 0;
  cursor: pointer;
  font: 700 var(--fs-title)/1.35 var(--font-display);
  color: var(--text);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  margin-right: 4px; /* room for the turned arrow */
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease);
}
.qa[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.qa summary:hover {
  color: #fff;
}
.qa p {
  padding: 0 0 1.35rem;
  color: var(--text-dim);
  max-width: 62ch;
}

/* Service pages */
.svc-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.svc-hero-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 960px) {
  .svc-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.svc-hero h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
}
.svc-hero .actions {
  margin-top: var(--s-5);
}
.eyebrow {
  margin-bottom: var(--s-3);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow a {
  color: var(--brand);
  text-decoration: none;
}
.svc-visual {
  padding: var(--s-4);
}
.svc-visual .viz {
  height: 14rem;
  margin: 0;
}
.svc-grid {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 960px) {
  .svc-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.ticks li {
  position: relative;
  padding: 0 0 0.85rem 2.1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(135, 212, 230, 0.5);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.42rem;
  width: 0.35rem;
  height: 0.6rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
}
.svc-note {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-left: 2px solid var(--brand);
  background: rgba(56, 189, 248, 0.06);
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.svc-small {
  margin-top: var(--s-4);
  color: var(--text-mute);
  font-size: var(--fs-sm);
}
.svc-side {
  display: grid;
  gap: var(--s-3);
}
.svc-box {
  padding: var(--s-4);
}
.svc-box h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--s-3);
}
.dots-list,
.num-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.dots-list li::marker {
  color: var(--brand);
}
.num-list li::marker {
  color: var(--brand);
  font: 600 0.8125rem var(--font-mono);
}
.cta-panel .lede a {
  color: var(--brand);
}
.others-title {
  margin: var(--s-5) 0 var(--s-3);
  font-size: var(--fs-md);
}
.others {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 700px) {
  .others {
    grid-template-columns: repeat(3, 1fr);
  }
}
.other {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  text-decoration: none;
  font: 700 var(--fs-title)/1.3 var(--font-display);
  color: var(--text);
}
.other b {
  color: var(--brand);
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .other:hover b {
    transform: translateX(4px);
  }
}

/* Footer columns */
.foot {
  align-items: flex-start;
}
.foot-brand p {
  margin-top: var(--s-1);
}
.foot-brand a {
  color: var(--text-dim);
  text-decoration: none;
}
.foot-brand a:hover {
  color: #fff;
}
.foot-col {
  display: flex !important;
  flex-direction: column;
  gap: 0.55rem !important;
}
.foot-col h2 {
  margin: 0 0 0.25rem;
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.foot-col a,
.foot-col .linklike {
  text-decoration: none;
  text-align: left;
}
.foot-col a:hover {
  text-decoration: underline;
}
.foot-copy {
  width: 100%;
}
@media (min-width: 900px) {
  .foot-copy {
    width: auto;
  }
}

/* Quote form extras */
.form fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.seg label {
  position: relative;
  display: block;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--onyx);
  font-size: var(--fs-body);
  color: var(--text-dim);
  text-align: center;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}
.seg input:checked + span {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.field-row {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form .opt {
  font-weight: 400;
  color: var(--text-mute);
}
.form .hint {
  margin: -0.25rem 0 0.25rem;
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

/* Graphic design card */
@media (min-width: 900px) {
  .c-graphics {
    grid-column: span 12;
  }
  .c-graphics .viz {
    height: 11rem;
  }
}
.viz-graphics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}
.viz-graphics b {
  display: block;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--line-strong);
  margin-top: 0.35rem;
}
.g-poster {
  width: 4.6rem;
  height: 6.6rem;
  padding: 0.45rem;
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.35), rgba(13, 17, 23, 0.9));
  border: 1px solid rgba(135, 212, 230, 0.35);
  transform: rotate(-6deg);
}
.g-poster i {
  display: block;
  height: 2.6rem;
  border-radius: 2px;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.55) 0 0.45rem, transparent 0.5rem),
    linear-gradient(160deg, var(--primary), #0b3b52);
}
.g-poster u {
  display: block;
  width: 60%;
  height: 0.6rem;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: var(--brand);
}
.g-card {
  width: 5.4rem;
  height: 6.2rem;
  padding: 0.7rem 0.6rem;
  border-radius: 4px;
  background: #f5efe6;
  text-align: center;
  transform: rotate(4deg);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
}
.g-card em {
  display: block;
  font: normal 1.2rem/1 serif;
  color: #c08a5b;
}
.g-card b {
  background: #d8c7b3 !important;
  margin-inline: auto;
  width: 80%;
}
.g-card b + b {
  width: 55%;
}
.g-biz {
  width: 5.6rem;
  height: 3.4rem;
  padding: 0.5rem;
  border-radius: 4px;
  background: var(--membrane);
  border: 1px solid var(--line-strong);
  transform: rotate(-3deg);
}
.g-biz i {
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--brand);
}
.g-swatch {
  display: grid;
  grid-template-columns: repeat(2, 1rem);
  gap: 0.3rem;
}
.g-swatch i {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--brand);
}
.g-swatch i:nth-child(2) {
  background: #f5efe6;
}
.g-swatch i:nth-child(3) {
  background: #c08a5b;
}
.g-swatch i:nth-child(4) {
  background: var(--primary);
}
.trio {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .trio {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 699px) {
  .trio li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .trio li:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

/* Service page icons */
.svc-badge {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s-3);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(92, 225, 230, 0.06));
  box-shadow:
    inset 0 0 0 1px rgba(135, 212, 230, 0.4),
    var(--glow-cyan);
  color: var(--brand);
}
.svc-badge .ico {
  width: 1.9rem;
  height: 1.9rem;
}
.ticks li.has-ico {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-left: 0;
}
.ticks li.has-ico::before,
.ticks li.has-ico::after {
  content: none;
}
.ticks li.has-ico .ico {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
  margin-top: 0.05rem;
}
.svc-box h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.svc-box h2 .ico {
  color: var(--brand);
}
.other-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.other-name .ico {
  color: var(--brand);
  width: 1.35rem;
  height: 1.35rem;
}
.other .go {
  color: var(--brand);
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .other:hover .go {
    transform: translateX(4px);
  }
}
@media (min-width: 700px) {
  .others {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}
.svc-visual .viz-graphics {
  height: 14rem;
}

/* ---------- Shared page parts ---------- */
.section.slim {
  padding-top: 0;
  border-top: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.section-head h2 {
  margin: 0;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
}
.more:hover {
  color: #fff;
}
.page-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-hero h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
}
.page-hero .actions {
  margin-top: var(--s-4);
}
.hero-ico,
.tile-ico,
.tip-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(92, 225, 230, 0.06));
  box-shadow: inset 0 0 0 1px rgba(135, 212, 230, 0.4);
  color: var(--brand);
}
.hero-ico {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--s-3);
}
.hero-ico .icon {
  width: 1.9rem;
  height: 1.9rem;
}
.tile-ico,
.tip-ico {
  width: 3rem;
  height: 3rem;
}
.tile-ico .icon,
.tip-ico .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.bento a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Home: graphic design strip */
.design-strip {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}
.design-strip > p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}
.design-strip > p .icon {
  color: var(--brand);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(13, 17, 23, 0.6);
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition:
    border-color 150ms ease,
    color 150ms ease;
}
.chip-link .icon {
  color: var(--brand);
}
.chip-link:hover {
  border-color: rgba(135, 212, 230, 0.5);
  color: #fff;
}

/* Steps with icons */
.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-top .num {
  margin: 0;
}
.step-ico {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand);
  opacity: 0.85;
}
.step {
  gap: var(--s-2);
}
.trio li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trio li .icon {
  width: 0.85em;
  height: 0.85em;
  color: var(--brand);
  stroke-width: 2;
}

/* Tips */
.tip-grid {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 800px) {
  .tip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
  }
}
.tip-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
}
.tip-card h2,
.tip-card h3 {
  font-size: var(--fs-title);
  margin: var(--s-2) 0 0;
}
.tip-card p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.tip-card .more {
  margin-top: auto;
  padding-top: var(--s-2);
}

/* Services index and graphic design tiles */
.svc-cards {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 800px) {
  .svc-cards {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 900px) {
  .svc-card {
    padding: 2rem;
  }
}
.svc-card h2 {
  font-size: var(--fs-md);
  margin: var(--s-2) 0 0;
}
.svc-card p {
  color: var(--text-dim);
}
.svc-card .more {
  margin-top: auto;
  padding-top: var(--s-2);
}
.design-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.design-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
}
.design-tile h3 {
  font-size: var(--fs-title);
  margin-top: var(--s-1);
}
.design-tile p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.design-tile .more {
  margin-top: auto;
  padding-top: var(--s-1);
}
.others.six {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.other {
  gap: 0.75rem;
}
.other .icon:first-child {
  color: var(--brand);
  width: 1.35rem;
  height: 1.35rem;
}
.other span {
  flex: 1;
}
.other .icon.sm {
  color: var(--brand);
  transition: transform 200ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .other:hover .icon.sm {
    transform: translateX(4px);
  }
}

/* About */
.about-hero .founder-copy p:not(.lede):not(.eyebrow) {
  color: var(--text-dim);
  max-width: 40rem;
  margin-top: var(--s-2);
}
.about-hero h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
}
.skill-grid {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 700px) {
  .skill-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .skill-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.skill {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  text-decoration: none;
  color: inherit;
}
.skill h3 {
  font-size: var(--fs-title);
  margin-top: var(--s-1);
}
.skill p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.values {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 800px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}
.value-ico {
  width: 2rem;
  height: 2rem;
  color: var(--brand);
  margin-bottom: var(--s-2);
}
.value h3 {
  font-size: var(--fs-title);
  margin-bottom: var(--s-2);
}
.value p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}

/* How it works page */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
}
@media (min-width: 700px) {
  .flow-step {
    gap: var(--s-5);
  }
}
.flow-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  width: 4rem;
}
.flow-mark .num {
  font: 800 2rem/1 var(--font-display);
  background: linear-gradient(135deg, var(--brand), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.flow-ico {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand);
}
.flow-step:not(:last-child) .flow-mark::after {
  content: '';
  position: absolute;
  top: 5.5rem;
  left: 50%;
  width: 1px;
  height: calc(100% + var(--s-4));
  background: linear-gradient(var(--brand), transparent);
}
.flow-card {
  padding: var(--s-4);
}
.flow-card h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--s-2);
}
.flow-card > p {
  color: var(--text-dim);
  margin-bottom: var(--s-3);
}
.small-ticks li {
  font-size: var(--fs-body);
  padding-bottom: 0.55rem;
}
@media (max-width: 560px) {
  .flow-mark {
    width: 2.75rem;
  }
  .flow-mark .num {
    font-size: 1.5rem;
  }
}

/* FAQ page */
.faq-list.wide {
  max-width: 52rem;
}

/* Portfolio */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--s-4);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--text-dim);
  font: 500 var(--fs-sm)/1 var(--font-body);
  cursor: pointer;
}
.filter .icon {
  color: var(--brand);
}
.filter:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.filter.on {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(135, 212, 230, 0.5);
  color: #fff;
}
.work-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.work-grid[hidden],
.empty-state[hidden] {
  display: none;
}
.work-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.work-body {
  padding: var(--s-3) var(--s-4) var(--s-4);
}
.work-body .tag {
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.work-body h3 {
  margin: 0.5rem 0;
}
.work-body p {
  color: var(--text-dim);
  font-size: var(--fs-body);
}
.empty-state {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  justify-items: start;
  gap: var(--s-3);
}
.empty-ico {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brand);
}
.empty-state p {
  color: var(--text-dim);
  max-width: 36rem;
}

/* Articles */
.article {
  padding: clamp(2.5rem, 6vw, 5rem) 0 var(--s-5);
}
.article h1 {
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  max-width: 22ch;
}
.byline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: var(--s-3) 0 var(--s-4);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.byline .icon {
  color: var(--brand);
}
.prose {
  max-width: 44rem;
}
.prose .lede {
  margin: 0 0 var(--s-4);
  color: var(--text);
}
.prose h2 {
  display: flex;
  align-items: center;
  font-size: var(--fs-md);
  margin: var(--s-5) 0 var(--s-2);
}
.prose p {
  color: var(--text-dim);
}
.article-cta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4);
  margin-top: var(--s-5);
}
.article-cta h2 {
  margin: 0 0 0.25rem;
  font-size: var(--fs-title);
}
.article-cta a {
  color: var(--brand);
}

/* Social media management card */
@media (min-width: 900px) {
  .c-social {
    grid-column: span 12;
  }
  .c-social .viz {
    height: 10rem;
  }
}
.viz-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.viz-social .post {
  width: 6.5rem;
  padding: 0.45rem;
  border-radius: 6px;
  background: var(--membrane);
  border: 1px solid var(--line-strong);
  transform: rotate(-4deg);
}
.viz-social .post.p2 {
  transform: rotate(5deg) translateY(0.6rem);
  width: 5.6rem;
}
.viz-social .post i {
  display: block;
  height: 3.6rem;
  border-radius: 3px;
  background: linear-gradient(
    150deg,
    rgba(56, 189, 248, 0.55),
    rgba(92, 225, 230, 0.15) 60%,
    rgba(13, 17, 23, 0.9)
  );
}
.viz-social .post.p2 i {
  height: 2.8rem;
  background: linear-gradient(150deg, rgba(135, 212, 230, 0.5), rgba(13, 17, 23, 0.9));
}
.viz-social .post b {
  display: block;
  height: 0.3rem;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: var(--line-strong);
  width: 85%;
}
.viz-social .post b + b {
  width: 55%;
}
.viz-social .post span {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-style: normal;
}
.viz-social .post em {
  font: normal 0.7rem/1 var(--font-body);
  color: var(--brand);
}
.viz-social .cal {
  display: grid;
  grid-template-columns: repeat(7, 0.9rem);
  gap: 0.3rem;
}
.viz-social .cal u {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  background: var(--line);
}
.viz-social .cal u.on {
  background: var(--brand);
  box-shadow: 0 0 10px rgba(135, 212, 230, 0.5);
}
@media (max-width: 420px) {
  .viz-social .cal {
    display: none;
  }
}

/* ---------- Example template images ---------- */
.tpl {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--onyx);
}

.tpl img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.tpl figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 99px;
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (hover: hover) and (pointer: fine) {
  a:hover .tpl img,
  .card:hover .tpl img {
    transform: scale(1.03);
  }
}

.bento .tpl {
  margin-bottom: var(--s-3);
}

@media (min-width: 900px) {
  .c-social .tpl img,
  .c-graphics .tpl img {
    aspect-ratio: 3 / 1.4;
  }
}

.svc-card .tpl,
.design-tile .tpl {
  margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-2);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--r-md) var(--r-md) 0 0;
}

@media (min-width: 900px) {
  .svc-card .tpl {
    margin: -2rem -2rem var(--s-2);
  }
}

.svc-visual .tpl {
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    var(--glow-cyan);
}

/* ---------- Shared: text only screen readers hear ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap.narrow {
  max-width: 46rem;
}

.muted {
  color: var(--text-dim);
}

/* ---------- Book a free call ---------- */
.book-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 960px) {
  .book-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }
}

.book-grid fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--s-3);
  min-width: 0;
}

.book-grid legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.day-row,
.time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.day-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.slot {
  flex: none;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--onyx);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.slot:hover {
  border-color: var(--line-strong);
}

.slot[aria-pressed='true'] {
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--primary);
  color: #fff;
}

.slot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.book-side {
  display: grid;
  gap: var(--s-3);
}

.book-side .card {
  padding: var(--s-4);
}

.book-side h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-title);
  margin: 0 0 var(--s-3);
}

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.icon-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text);
}

.icon-list .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
  margin-top: 0.1rem;
}

/* ---------- Reviews ---------- */
.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
}

.stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.stars label {
  cursor: pointer;
  padding: 0.2rem;
  border-radius: var(--r-sm);
}

.stars .star {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-mute);
  transition:
    color var(--dur-fast) var(--ease),
    fill var(--dur-fast) var(--ease);
}

/* Stars light up to the one you point at or chose (the row is reversed, so "~" means "lower") */
.stars label:hover .star,
.stars label:hover ~ label .star,
.stars input:checked ~ label .star {
  color: #fbbf24;
  fill: #fbbf24;
}

.stars input:focus-visible + label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.review-grid {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 800px) {
  .review-grid {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: var(--s-4);
  }
}

.review {
  margin: 0;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.review .rating {
  margin: 0;
  color: #fbbf24;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.review blockquote {
  margin: 0;
}

.review blockquote p {
  margin: 0;
  color: var(--text);
  white-space: pre-line;
}

.review figcaption {
  margin-top: auto;
  display: grid;
  gap: 0.1rem;
  padding-top: var(--s-2);
  border-top: 1px solid var(--hairline);
}

.review figcaption span {
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

/* ---------- Blog ---------- */
.post-card .post-cover {
  display: block;
  margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-2);
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.post-card .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-date {
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.post-hero {
  margin: var(--s-4) 0;
}

.post-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}

.prose blockquote {
  margin: var(--s-4) 0;
  padding: 0.25rem 0 0.25rem var(--s-3);
  border-left: 3px solid var(--brand);
  color: var(--text);
  font-style: italic;
}

.draft-bar {
  margin: 0;
  padding: 0.75rem var(--margin);
  background: #713f12;
  color: #fff;
  text-align: center;
  font-weight: 600;
}

/* ---------- Kiswahili ---------- */
/* Kiswahili has long words ("tunakushughulikia"): keep big headings inside the screen on phones */
:lang(sw) h1,
:lang(sw) h2 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* grid columns may shrink below their longest word, so the text wraps instead of widening the page */
.svc-hero-grid > *,
.hero-grid > * {
  min-width: 0;
}

@media (max-width: 600px) {
  :lang(sw) .page-hero h1,
  :lang(sw) .svc-hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.4rem);
  }
}

/* ---------- Area, hours and ratings (filled in by js/site.js) ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-4);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: var(--fs-sm);
  text-decoration: none;
  background: rgba(13, 17, 23, 0.6);
}

.rating-badge .stars,
.foot-rating,
.svc-rating {
  color: #fbbf24;
}

.rating-badge:hover {
  border-color: var(--brand);
}

.foot-meta {
  display: grid;
  gap: 0.4rem;
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.foot-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.foot-meta .icon {
  color: var(--brand);
}

.foot-rating {
  text-decoration: none;
}

.open-status .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
}

.open-status.is-open .dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.open-status.is-closed .dot {
  background: var(--text-mute);
}

.svc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: var(--s-3) 0 0;
  font-size: var(--fs-body-lg);
}

.svc-meta .from {
  color: var(--brand);
}

.svc-rating {
  text-decoration: none;
}

span.from {
  display: block;
  font: 600 var(--fs-sm) / 1.3 var(--font-mono);
  color: var(--brand);
  letter-spacing: 0.02em;
}

/* ---------- Contact: where we are ---------- */
.where-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 900px) {
  .where-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: stretch;
  }
}

.where-info,
.where-map {
  padding: var(--s-4);
}

.where-info h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}

.where-status {
  font-weight: 600;
}

.where-status.is-open {
  color: var(--success);
}

.where-status.is-closed {
  color: var(--text-dim);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-3) 0;
  font-size: var(--fs-body);
}

.hours-table caption {
  text-align: left;
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-bottom: 0.6rem;
}

.hours-table th,
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  font-weight: 400;
}

.hours-table td {
  text-align: right;
  color: var(--text-dim);
}

.hours-table tr.today th,
.hours-table tr.today td {
  color: #fff;
  font-weight: 600;
}

.where-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-3);
  min-height: 18rem;
}

.map-frame {
  width: 100%;
  flex: 1;
  min-height: 20rem;
  border: 0;
  border-radius: var(--r-md);
}

/* ---------- Prices ---------- */
.price-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--s-4);
  color: inherit;
  text-decoration: none;
}

.price-card h2 {
  font-size: var(--fs-title);
  margin: 0;
}

.price-card .price {
  margin: 0.4rem 0 0;
  font: 800 1.5rem / 1.1 var(--font-display);
  color: var(--brand);
}

.price-card .unit {
  margin: 0;
  color: var(--text-mute);
  font-size: var(--fs-sm);
}

.price-card .more {
  margin-top: auto;
  padding-top: var(--s-2);
}

.price-notes {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

@media (min-width: 800px) {
  .price-notes {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Reviews page ---------- */
.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: var(--s-4);
}

.big-rating {
  font: 800 3rem / 1 var(--font-display);
}

.review-summary .rating,
.review .rating {
  color: #fbbf24;
  letter-spacing: 0.15em;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
}

.review .when {
  color: var(--text-mute);
  font-size: var(--fs-sm);
}

#review-filters {
  margin-bottom: var(--s-4);
}

.google-ask {
  margin-top: var(--s-4);
  text-align: center;
  padding: var(--s-5) var(--s-4);
}

/* ---------- Project tracker ---------- */
.tracker .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.track-head h1 {
  font-size: var(--fs-xl);
  margin: 0.25rem 0 var(--s-4);
  overflow-wrap: break-word;
}

.track-head .lede {
  margin: 0;
}

.track-steps {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .track-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.track-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-mute);
  font-size: var(--fs-sm);
}

.step-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: none;
}

.track-steps li.done {
  color: var(--text-dim);
}

.track-steps li.done .step-dot {
  background: var(--success);
  border-color: var(--success);
}

.track-steps li.now {
  color: #fff;
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

.track-steps li.now .step-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.track-update {
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  border-left: 3px solid var(--brand);
}

.track-update h2,
.track-card h2 {
  font-size: var(--fs-title);
  margin: 0 0 var(--s-2);
}

.track-update p {
  margin: 0 0 0.4rem;
  white-space: pre-line;
}

.track-card {
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}

.track-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--s-3);
  margin: 0 0 var(--s-3);
}

.track-facts dt {
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.track-facts dd {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.track-facts .owed dd {
  color: #fbbf77;
}

.track-facts .clear dd {
  color: var(--success);
}

.tracker .meter {
  height: 8px;
  border-radius: 4px;
  background: var(--hairline);
  overflow: hidden;
}

.tracker .meter span {
  display: block;
  height: 100%;
  background: var(--success);
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}

.track-list li > div:first-child {
  display: grid;
}

.track-list small {
  color: var(--text-mute);
}

.track-list .end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.track-list .amt {
  font-family: var(--font-mono);
}

.tracker .chip {
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.tracker .chip.paid {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.4);
}

.tracker .chip.overdue {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.5);
}

.tracker .chip.unpaid {
  color: #fbbf77;
  border-color: rgba(251, 191, 119, 0.4);
}

.track-note {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* ---------- Footer: social media links ---------- */
.foot-social {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.foot-social a:hover {
  color: #fff;
  border-color: var(--brand);
}

.foot-social .icon.xs {
  width: 0.8rem;
  height: 0.8rem;
  transform: rotate(-45deg);
}

/* ---------- Portfolio cards (filled in by js/portfolio.js) ---------- */
.work-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.work-item[hidden] {
  display: none;
}

/* Every picture sits whole on a soft panel (posters stay tall, logos stay square) */
.work-open {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--s-3);
  border: 0;
  background: radial-gradient(80% 90% at 50% 20%, #17263a, #0b111a);
  cursor: zoom-in;
}

.work-open img,
.work-item .work-open img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform var(--dur-base, 240ms) var(--ease);
}

.work-open:hover img {
  transform: scale(1.03);
}

.work-open:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}

.work-play {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(7, 9, 14, 0.75);
  color: #fff;
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-play .icon {
  fill: currentColor;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.work-tags .tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: 600 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.work-tags .tag.client {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
}

.work-tags .tag.concept {
  color: var(--text-dim);
}

.work-body .work-client {
  margin: -0.25rem 0 0.5rem;
  color: var(--text);
  font-size: var(--fs-sm);
}

.work-body .work-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-grid.featured {
  margin-bottom: 0;
}

/* ---------- Larger view ---------- */
.work-view {
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px);
  background: #0b111a;
  color: var(--text);
  overflow: auto;
}

.work-view::backdrop {
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(6px);
}

.work-view[open] {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .work-view[open] {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.view-media {
  display: grid;
  place-items: center;
  min-height: 16rem;
  padding: var(--s-4);
  background: radial-gradient(80% 90% at 50% 20%, #17263a, #070b11);
}

.view-media img,
.view-media video {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  border-radius: var(--r-sm);
}

.view-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-4) var(--s-4);
}

.view-info h2 {
  margin: 0.25rem 0 0;
  font-size: var(--fs-xl, 1.6rem);
}

.view-info p {
  margin: 0;
  color: var(--text-dim);
}

.view-info .btn {
  margin-top: var(--s-2);
}

.view-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.8);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.view-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--s-4) var(--s-4);
}

.view-nav button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.view-close:focus-visible,
.view-nav button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* The "Coming soon" panel on the home page hides once real work is shown */
.panel[hidden] {
  display: none;
}

/* Pictures always fit inside the card's 4:3 box, whatever their shape */
.work-open {
  overflow: hidden;
}

.work-open img,
.work-item .work-open img {
  position: absolute;
  inset: var(--s-3);
  width: calc(100% - 2 * var(--s-3));
  height: calc(100% - 2 * var(--s-3));
}

/* ---------- Floating buttons: WhatsApp and "Ask our AI" are exactly the same size ---------- */
.wa-fab,
.chat-launcher {
  box-sizing: border-box;
  width: 10.25rem;
  height: 3.25rem;
  min-height: 0;
  padding: 0 1rem;
  gap: 0.6rem;
  justify-content: flex-start;
  border: 1px solid transparent;
  font: 700 0.9375rem/1 var(--font-body);
  white-space: nowrap;
}
.chat-launcher {
  border-color: rgba(135, 212, 230, 0.5);
}
/* the two icons: same size */
.wa-fab .wa-icon,
.chat-launcher .chat-spark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
/* phones: two equal round buttons, icon only */
@media (max-width: 480px) {
  .wa-fab,
  .chat-launcher {
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Client portal ---------- */
.portal .portal-h {
  margin: var(--s-5) 0 var(--s-2);
  font-size: var(--fs-lg);
}
.portal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-2);
}
.portal-row > div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.portal-row small {
  color: var(--text-mute);
}
.portal-row .end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.portal-row h3 {
  margin: 0;
  font-size: var(--fs-md);
}
.portal .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.portal-lines {
  width: 100%;
  margin: var(--s-2) 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.portal-lines th,
.portal-lines td {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.portal-lines .r {
  text-align: right;
}
.portal-lines thead th {
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.portal-lines tfoot th,
.portal-lines tfoot td {
  border-bottom: 0;
  font-weight: 700;
}
.portal-pre {
  white-space: pre-line;
}
.portal-note {
  margin: var(--s-2) 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 10px);
  background: rgba(135, 212, 230, 0.06);
}
.portal-note.good {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}
.portal-note.warn {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.08);
}
.portal-form {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--s-2);
}
.portal-form .btn {
  justify-self: start;
}
.portal-form textarea,
.portal-form input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--r-sm, 8px);
  background: var(--bg-2, rgba(255, 255, 255, 0.03));
  color: var(--text);
  font: inherit;
}
.portal-form .check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.portal-form .check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}
.portal-label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.portal-error {
  margin: 0;
  color: #ff8a9b;
}
.portal-error:empty {
  display: none;
}
.portal-changes {
  margin-top: var(--s-2);
}
.portal-changes summary {
  cursor: pointer;
  color: var(--primary);
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}
.portal-sub {
  margin: var(--s-3) 0 var(--s-1);
  font: 600 var(--fs-label) / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.portal-files li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
}
.portal-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.portal-todo-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.portal-invoices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.portal-invoices summary {
  cursor: pointer;
  padding: 0.6rem 0;
  list-style: none;
}
.portal-invoices summary::-webkit-details-marker {
  display: none;
}
.portal-invoices details {
  border-bottom: 1px solid var(--line);
}
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-height: 24rem;
  overflow-y: auto;
}
.thread li {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.thread li p {
  margin: 0.2rem 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.thread li small {
  color: var(--text-mute);
}
.thread .msg-me {
  justify-self: end;
  background: rgba(135, 212, 230, 0.12);
}

/* The client page sits in the middle of wide screens instead of hugging the left edge */
.portal .wrap.narrow {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* Client page: payments and receipts */
.portal-pays li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.portal-pays li > div {
  display: grid;
}
.portal-receipt .rc-biz {
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
}
.portal-receipt h2 {
  margin: 0;
}
.portal-receipt .rc-no {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
}
.rc-amount {
  display: grid;
  gap: 0.2rem;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
}
.rc-amount strong {
  font-size: 1.75rem;
}
.rc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}
.rc-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.rc-facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}
.rc-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
}
@media print {
  body.receipt-view .site-header,
  body.receipt-view .site-footer,
  body.receipt-view .wa-fab,
  body.receipt-view .chat-launcher,
  body.receipt-view .chat-panel,
  body.receipt-view .consent,
  body.receipt-view .eyebrow,
  body.receipt-view .no-print,
  body.receipt-view .skip {
    display: none !important;
  }
  body.receipt-view,
  body.receipt-view .portal-receipt {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  body.receipt-view .portal-receipt * {
    color: #111 !important;
    border-color: #ccc !important;
    background: transparent !important;
  }
  body.receipt-view .section {
    padding: 0 !important;
  }
}
