@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-latin.woff") format("woff");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  --paper: #F5F3EE;
  --surface: #FBFAF7;
  --ink: #22211F;
  --muted: #6F6B63;
  --line: #DEDAD0;
  --accent: #55665A;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 10px;
  --max: 1280px;
  --img-max-h: calc(100vh - 240px);
}
@supports (height: 100dvh) { :root { --img-max-h: calc(100dvh - 240px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
html.pre main, html.pre .site-footer { visibility: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; min-height: 65px;
  background: rgba(245, 243, 238, .96);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bar-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.brand-logo {
  display: block; width: auto; max-width: 150px; object-fit: contain; transform-origin: 50% 65%;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { transform: rotate(-9deg) scale(1.12); }
.brand:active .brand-logo { transform: scale(.94); transition-duration: .15s; }
.brand-logo.logo-intro { animation: logo-in 1s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
@keyframes logo-in {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; transform: rotate(-14deg) scale(.7); }
  35%  { opacity: 1; }
  70%  { clip-path: inset(0 0 0 0); transform: rotate(3deg) scale(1.08); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo.logo-intro { animation: none; }
  .brand-logo, .brand:hover .brand-logo { transition: none; transform: none; }
}
.brand { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.bar nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding-block: 4px; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
}
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Home / About */
.about { padding-block: clamp(24px, 5vw, 64px); }
.about-grid {
  display: grid; grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(28px, 6vw, 96px); align-items: center;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.avatar {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 28px; background: var(--line);
}
.about h1 {
  font: 600 clamp(2.4rem, 6vw, 4.2rem)/1.04 var(--sans);
  letter-spacing: -.035em; margin: 0 0 .3em;
}
.role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 1.5rem; }
.role { margin: 0; color: var(--muted); font-size: 1.1rem; }
#aboutText p { margin: 0 0 1em; max-width: 54ch; color: #3B3935; }
#aboutText p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.6em; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 .95rem/1.2 var(--sans); text-decoration: none;
  border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn[hidden] { display: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.text-link { font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .avatar { max-width: 300px; }
}

/* Inner pages */
.page { padding-block: clamp(24px, 4vw, 56px) clamp(36px, 6vw, 80px); }
.page-head { margin-bottom: clamp(24px, 4vw, 40px); }
.page h1 { font: 600 clamp(2rem, 5vw, 3.2rem)/1.08 var(--sans); letter-spacing: -.035em; margin: 0 0 .4em; }
.page-head p { margin: 0; max-width: 56ch; }
.contact .actions { margin-top: 0; }
.links { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.links a { color: var(--muted); font-size: .95rem; text-underline-offset: 4px; }
.links a:hover { color: var(--ink); }

/* Gallery (masonry via CSS columns; any aspect ratio) */
.gallery { columns: 290px auto; column-gap: 16px; }
.card {
  position: relative; display: block; width: 100%;
  margin: 0 0 16px; padding: 0; border: 0;
  background: var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  font: inherit; color: inherit;
}
.card img { display: block; width: 100%; height: auto; }
.empty { color: var(--muted); }

/* Footer */
.site-footer {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 28px;
  color: var(--muted); font-size: .875rem;
}
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { color: var(--ink); }

/* Viewer */
dialog#viewer {
  border: 0; padding: 0; margin: 0;
  width: 100%; max-width: none; height: 100vh; max-height: none;
  background: rgba(245, 243, 238, .98); color: var(--ink);
}
@supports (height: 100dvh) { dialog#viewer { height: 100dvh; } }
dialog#viewer::backdrop { background: rgba(245, 243, 238, .98); }
html.locked { overflow: hidden; }

.v { position: relative; display: flex; flex-direction: column; height: 100%; }
.v-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.v-stage {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px 8px;
}
.media { position: relative; display: inline-block; line-height: 0; }
.v-img { display: block; max-width: calc(100vw - 48px); max-height: var(--img-max-h); width: auto; height: auto; border-radius: 8px; }

.v-bar {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
.v-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.v-title { margin: 0; font: 600 1.1rem/1.2 var(--sans); letter-spacing: -.01em; }
.v-title:empty { display: none; }
.v-desc { margin: 0; max-width: 56ch; max-height: 7.5em; overflow-y: auto; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.v-desc:empty { display: none; }
.v-title + .v-desc { margin-top: -2px; }
.v-meta { display: flex; align-items: center; gap: 14px; font-size: .8rem; color: var(--muted); }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }
.link-btn[hidden] { display: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn.is-off { visibility: hidden; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--line); border-radius: 999px; }
.seg[hidden] { display: none; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: .4em 1.1em; border-radius: 999px;
  font: 500 .85rem/1.3 var(--sans); cursor: pointer; transition: background .2s, color .2s;
}
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* iMessage-style request bubble */
.bubble {
  position: absolute; z-index: 3; top: -14px; left: -8px;
  max-width: min(80%, 300px);
  padding: 9px 14px;
  background: #E9E9EB; color: #111;
  border-radius: 18px 18px 18px 5px;
  font: 400 .95rem/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left; overflow-wrap: anywhere;
  transform: rotate(-4deg); transform-origin: bottom left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  pointer-events: none;
  animation: pop .35s cubic-bezier(.3, 1.4, .5, 1) both;
}
.bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 0; width: 20px; height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M16 0v16H6.5C3 16 1.2 15 0 13.5c2.6-.4 4.8-1.6 5.4-5.2L6 0z' fill='%23E9E9EB'/></svg>") no-repeat center / 100% 100%;
}
.media.hide-req .bubble { display: none; }
@keyframes pop {
  from { opacity: 0; transform: rotate(-4deg) scale(.85); }
  to   { opacity: 1; transform: rotate(-4deg) scale(1); }
}

/* Before / after comparison */
.compare {
  position: relative; display: inline-block; line-height: 0;
  cursor: ew-resize; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; border-radius: 8px;
}
.compare.snap { transition: --pos .5s cubic-bezier(.3, .7, .2, 1); }
.c-after { display: block; max-width: calc(100vw - 48px); max-height: var(--img-max-h); width: auto; height: auto; border-radius: 8px; -webkit-user-drag: none; }
.c-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); border-radius: 8px; overflow: hidden; }
.c-before img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none; }
.c-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.knob {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.tag {
  position: absolute; bottom: 12px; padding: .25em .75em; border-radius: 999px;
  font: 500 .75rem/1.5 var(--sans); color: #fff; background: rgba(34, 33, 31, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  pointer-events: none; transition: opacity .2s;
}
.tag-b { left: 12px; }
.tag-a { right: 12px; }
.compare.hide-b .tag-b, .compare.hide-a .tag-a { opacity: 0; }

@media (max-width: 480px) {
  .v-stage { padding-inline: 16px; }
  .v-img, .c-after { max-width: calc(100vw - 32px); }
  .v-bar { padding-inline: 14px; gap: 8px; }
  .bubble { top: 10px; left: 14px; max-width: 78%; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about-grid, .bubble { animation: none; }
  .compare.snap { transition: none; }
}

/* Home: contact section */
.section { position: relative; padding-block: clamp(28px, 5vw, 56px) clamp(36px, 6vw, 72px); }
.section::before, .site-footer::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--line);
  left: max(var(--pad), env(safe-area-inset-left, 0px));
  right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.section h2 { font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--sans); letter-spacing: -.03em; margin: 0 0 .4em; }
.section > p { margin: 0; max-width: 64ch; }
p { text-wrap: pretty; }
.section.contact .actions { margin-top: 1.4rem; }

/* Shop */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s;
}
.product:hover { border-color: var(--muted); }
.product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product h3 { margin: 0; font: 600 1.05rem/1.3 var(--sans); letter-spacing: -.01em; }
.price { color: var(--muted); font-size: .9rem; }
.product p { margin: .6em 0 0; color: #3B3935; font-size: .95rem; line-height: 1.55; }
.product-cta { margin-top: auto; padding-top: 14px; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.product:hover .product-cta { text-decoration-color: var(--ink); }
.shop-actions { margin-top: 2rem; }


@media (max-width: 360px) { :root { --pad: 16px; } }

/* Mobile menu */
.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 2px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 700px) {
  .bar-right { gap: 6px; }
  .menu-btn { display: block; }
  .bar nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 4px max(var(--pad), env(safe-area-inset-right, 0px)) 8px max(var(--pad), env(safe-area-inset-left, 0px));
    background: var(--paper); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .bar nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  .bar nav a { padding: 14px 0; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .bar nav a:last-child { border-bottom: 0; }
  .bar nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-btn span, .bar nav, .bar nav.open { transition: none; }
}

/* Portfolio hint */
.page-head .hint {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 18px 0 0; padding: 5px 14px 5px 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; line-height: 1.4; color: var(--muted);
  animation: rise .7s .15s cubic-bezier(.2, .7, .2, 1) both;
}
.page-head .hint[hidden] { display: none; }
.hint-icon {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #E4EAE4; color: var(--accent);
}

/* Online status */
.status-wrap { position: relative; }
.status-wrap[hidden] { display: none; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 11px 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 500 .8rem/1.5 var(--sans); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s;
}
.status:hover { border-color: var(--muted); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #A7A398; }
.is-online .dot { background: #5E9B72; }
.is-online .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5E9B72;
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
.tip {
  display: none; position: absolute; z-index: 5; top: calc(100% + 10px); left: 0;
  width: max-content; max-width: min(270px, calc(100vw - 2 * var(--pad)));
  padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font-size: .85rem; line-height: 1.45; text-align: left; font-weight: 400;
  box-shadow: 0 8px 24px rgba(34, 33, 31, .18); pointer-events: none;
}
.tip::before {
  content: ""; position: absolute; top: -5px; left: var(--arrow, 22px); width: 10px; height: 10px;
  background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}
.status-wrap.open .tip, .status:focus-visible + .tip { display: block; animation: tipin .2s ease both; }
@media (hover: hover) {
  .status-wrap:hover .tip { display: block; animation: tipin .2s ease both; }
}
@keyframes tipin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .is-online .dot::after, .page-head .hint { animation: none; }
  .tip { animation: none !important; }
}

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left;
  font: 600 1.05rem/1.4 var(--sans); letter-spacing: -.01em; -webkit-tap-highlight-color: transparent;
}
.faq-icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s, border-color .3s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px;
  border-radius: 2px; background: var(--ink); transition: background .3s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q:hover .faq-icon { border-color: var(--muted); }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.faq-item.open .faq-a-inner { visibility: visible; transition-delay: 0s; }
.faq-a-inner p {
  margin: 0; padding: 0 46px 22px 0; max-width: 62ch; color: #3B3935;
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.faq-item.open .faq-a-inner p { opacity: 1; transform: none; transition-delay: .08s; }
.faq-a-inner a { text-underline-offset: 3px; }
.faq-cta { max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.faq-cta p { margin: 0; }

/* Client's words */
.words > p { margin: 0; }
.tw { --cw: clamp(230px, 19vw, 280px); --gap: 16px; --ease: cubic-bezier(.3, .8, .3, 1); margin-top: 26px; outline: none; }
.tw-viewport {
  display: flex; align-items: center; overflow: hidden; padding: 16px 0 36px; margin-bottom: -14px; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.tw-track { position: relative; flex: none; display: flex; align-items: center; gap: var(--gap); will-change: transform; transition: transform .38s var(--ease); }
.tcard {
  flex: none; width: var(--cw); display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: inherit; text-decoration: none;
  transform: scale(.93); opacity: .92; transform-origin: center;
  transition: transform .38s var(--ease), opacity .38s ease, box-shadow .35s ease, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.tcard[data-d="0"] { transform: scale(1.05); opacity: 1; border-color: #CFCBBF; box-shadow: 0 22px 38px -26px rgba(34, 33, 31, .42); }
.tcard[data-d="1"] { transform: scale(.95); opacity: .96; cursor: pointer; }
.tcard[data-d="0"]:hover { transform: scale(1.07); }
.t-msg {
  margin: 0; font-size: 1rem; line-height: 1.55; color: #3B3935; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.t-top { display: flex; align-items: center; gap: 9px; }
.t-av {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #E4EAE4; color: var(--accent); font-weight: 600; font-size: .85rem;
}
.t-name { font-weight: 600; font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-foot {
  display: inline-flex; align-items: center; gap: 4px; margin-top: auto;
  font-size: .75rem; font-weight: 500; color: var(--muted); opacity: 0; transform: translateY(4px);
  transition: opacity .25s .08s, transform .25s .08s;
}
.tcard[data-d="0"] .t-foot { opacity: 1; transform: none; }
.tw-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tw-controls[hidden] { display: none; }
.tw.no-anim, .tw.no-anim * { transition: none !important; }

/* phones and other narrow screens: one focused card with the neighbours peeking in */
@media (max-width: 700px) {
  .tw { --cw: 72vw; --gap: 10px; }
  .tw-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
  .tcard { padding: 20px; gap: 14px; border-radius: 20px; transform: scale(.86); opacity: .45; }
  .tcard[data-d="0"] { transform: scale(1); opacity: 1; }
  .tcard[data-d="1"] { transform: scale(.88); opacity: .55; }
  .tcard[data-d="2"] { transform: scale(.8); opacity: .25; }
  .tcard[data-d="0"]:hover { transform: scale(1); }
  .t-top { gap: 10px; }
  .t-av { width: 36px; height: 36px; font-size: .95rem; }
  .t-name { font-size: .95rem; }
  .t-msg { font-size: .98rem; line-height: 1.55; -webkit-line-clamp: 8; line-clamp: 8; }
  .t-foot { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-icon, .faq-a-inner p { transition: none; }
  .tw-track, .tcard, .t-foot { transition-duration: .01s; transition-delay: 0s; }
}

/* Footer: left links + payment icons */
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.social-icons { display: flex; align-items: center; gap: 12px; }

.site-footer { --ih: 24px; min-height: 96px; }
.pay-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pay-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(var(--ih, 24px) * var(--ar, 1)); height: var(--ih, 24px); text-decoration: none;
  transition: transform .25s cubic-bezier(.3, .8, .3, 1), filter .25s;
}
.pay-ico img { display: block; width: 100%; height: 100%; object-fit: var(--fit, contain); pointer-events: none; -webkit-user-drag: none; }
a.pay-ico { cursor: pointer; }
span.pay-ico { cursor: default; }
@media (hover: hover) {
  .pay-ico:hover, .pay-ico:focus-visible { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 8px 8px rgba(34, 33, 31, .18)); }
}
a.pay-ico:active { transform: scale(.92); }
.pay-ico::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 500; line-height: 1.4;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility 0s .2s;
}
@media (hover: hover) {
  .pay-ico:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
}
.pay-ico:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
/* phones: copyright on its own line, then every icon on one evenly spaced row */
@media (max-width: 700px) {
  .site-footer {
    --ih: clamp(17px, 5.6vw, 22px);
    display: grid; grid-template-columns: repeat(var(--n, 9), auto);
    justify-content: space-between; align-items: center; row-gap: 16px; column-gap: 8px;
  }
  .footer-left, .social-icons, .pay-icons { display: contents; }
  .footer-left > span { grid-column: 1 / -1; }
  .pay-ico::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pay-ico, .pay-ico::after { transition: none; } }
