/* ==========================================================================
   Ogonek — O nas
   ========================================================================== */

/* ---------- Taśma z wytłaczarki (Dymo) ---------- */
.dymo {
  display: inline-block;
  padding: 0.38em 0.7em 0.32em;
  border-radius: 2px;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%, rgba(0, 0, 0, 0.18));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28), 0 -1px 0 rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 5px rgba(20, 21, 26, 0.25);
}
.dymo--pink {
  background-color: var(--pink-ink);
}
.dymo--lime {
  background-color: #2f7d32;
}

/* ---------- Hero z polaroidami ---------- */
.a-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: max(780px, 100svh);
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
  overflow: clip;
}
.a-hero__center {
  position: relative;
  z-index: 3;
  max-width: calc(660px + var(--gutter) * 2);
  text-align: center;
}
.a-hero .crumbs {
  justify-content: center;
}
.a-hero h1 {
  max-width: 16ch;
  margin-inline: auto;
}
.a-hero .lead {
  margin: 1.5rem auto 0;
  max-width: 50ch;
}
.a-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.5rem;
  color: var(--ink-3);
}
.board {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.polaroid {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(130px, 13vw, 210px);
  margin: 0;
  padding: 9px 9px 44px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(20, 21, 26, 0.45), 0 2px 4px rgba(20, 21, 26, 0.06);
  rotate: var(--r, 0deg);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: box-shadow var(--d-3) var(--ease-out), scale 0.4s var(--ease-spring);
}
.polaroid--sm {
  width: clamp(116px, 10.5vw, 176px);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  pointer-events: none;
}
.polaroid .dymo {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  position: absolute;
  left: 50%;
  bottom: 11px;
  max-width: none;
  translate: -50% 0;
  rotate: -2deg;
}
.polaroid.is-dragging {
  cursor: grabbing;
  scale: 1.06;
  box-shadow: 0 40px 70px -25px rgba(20, 21, 26, 0.55);
}
.a-hero__hint {
  display: none;
}
/* na laptopach węższy opis — nie wchodzi pod polaroidy po bokach */
@media (min-width: 1000px) and (max-width: 1299px) {
  .a-hero .lead {
    max-width: 40ch;
  }
}
@media (min-width: 1000px) and (hover: hover) {
  .a-hero__hint {
    display: inline-flex;
  }
}
@media (max-width: 999px) {
  .a-hero {
    min-height: 0;
    padding-bottom: 2rem;
  }
  .board {
    position: relative;
    inset: auto;
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1rem var(--gutter) 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    pointer-events: auto;
  }
  .board::-webkit-scrollbar {
    display: none;
  }
  .polaroid,
  .polaroid--sm {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 auto;
    width: min(58vw, 230px);
    scroll-snap-align: center;
    cursor: default;
    touch-action: auto;
  }
}

/* ---------- Manifest ---------- */
.manifest__text {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 82%;
  font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.manifest__text .mw {
  transition: opacity 0.2s linear;
}
.js.motion .manifest__text .mw {
  opacity: 0.16;
}

/* ---------- Adresówki ---------- */
.keyring {
  position: relative;
  padding-top: 2.5rem;
}
.keyring__bar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 7px;
  background: linear-gradient(180deg, #eef0f4, #9aa1ad 60%, #7f8794);
  box-shadow: 0 3px 6px rgba(20, 21, 26, 0.18);
}
.dogtags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 3rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dogtag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% -26px;
}
.dogtag:hover,
.dogtag.is-swinging {
  animation: swing 1.7s ease-out;
}
@keyframes swing {
  0% {
    rotate: 0deg;
  }
  18% {
    rotate: var(--swing);
  }
  38% {
    rotate: calc(var(--swing) * -0.65);
  }
  58% {
    rotate: calc(var(--swing) * 0.38);
  }
  78% {
    rotate: calc(var(--swing) * -0.16);
  }
  100% {
    rotate: 0deg;
  }
}
.dogtag__hook {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin-top: -38px;
  margin-bottom: -14px;
  border: 4px solid #a3a9b4;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 3px rgba(20, 21, 26, 0.25);
}
.dogtag__plate {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 270px;
  min-height: 190px;
  padding: 2.6rem 1.6rem 1.7rem;
  background-color: var(--tag);
  background-image: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12));
  color: var(--ink);
  text-align: center;
  filter: drop-shadow(0 16px 18px rgba(20, 21, 26, 0.22));
}
.dogtag__plate::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
}
.dogtag__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 46%, transparent 60%) -120% 0 / 220% 100% no-repeat;
  transition: background-position 1.1s var(--ease-out);
  pointer-events: none;
}
.dogtag:hover .dogtag__plate::after {
  background-position: 120% 0;
}
.dogtag h3 {
  font-size: 1.45rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dogtag p {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 22ch;
}
.dogtag--round .dogtag__plate {
  aspect-ratio: 1;
  max-width: 250px;
  border-radius: 50%;
  padding: 2.4rem 2rem 2rem;
}
.dogtag--rect .dogtag__plate {
  border-radius: 26px;
  min-height: 220px;
}
.dogtag--rect .dogtag__plate::after,
.dogtag--round .dogtag__plate::after {
  border-radius: inherit;
}
.dogtag--bone .dogtag__plate {
  aspect-ratio: 26 / 17;
  min-height: 0;
  padding: 1.6rem 2.6rem 1.4rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 170' preserveAspectRatio='none'%3E%3Cg%3E%3Crect x='34' y='34' width='192' height='102' rx='14'/%3E%3Ccircle cx='44' cy='46' r='38'/%3E%3Ccircle cx='44' cy='124' r='38'/%3E%3Ccircle cx='216' cy='46' r='38'/%3E%3Ccircle cx='216' cy='124' r='38'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 170' preserveAspectRatio='none'%3E%3Cg%3E%3Crect x='34' y='34' width='192' height='102' rx='14'/%3E%3Ccircle cx='44' cy='46' r='38'/%3E%3Ccircle cx='44' cy='124' r='38'/%3E%3Ccircle cx='216' cy='46' r='38'/%3E%3Ccircle cx='216' cy='124' r='38'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dogtag--bone .dogtag__plate::before {
  top: 16px;
}
.dogtag--bone h3 {
  margin-top: 0.6rem;
}
.dogtag--heart .dogtag__plate {
  aspect-ratio: 26 / 24;
  min-height: 0;
  padding: 2.6rem 2.6rem 4.2rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 240' preserveAspectRatio='none'%3E%3Cpath d='M130 232C46 168 6 122 6 72 6 34 36 6 74 6c24 0 44 12 56 32C142 18 162 6 186 6c38 0 68 28 68 66 0 50-40 96-124 160z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 240' preserveAspectRatio='none'%3E%3Cpath d='M130 232C46 168 6 122 6 72 6 34 36 6 74 6c24 0 44 12 56 32C142 18 162 6 186 6c38 0 68 28 68 66 0 50-40 96-124 160z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dogtag--heart .dogtag__plate::before {
  top: 44px;
}
.dogtag--heart h3 {
  margin-top: 1.2rem;
}

/* ---------- Historia: miarka ---------- */
.history__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .history__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .history__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.history__head .lead {
  margin-top: 1rem;
}
.ruler {
  position: relative;
  margin: 0;
  padding: 0.5rem 0 0 calc(64px + 2.25rem);
  list-style: none;
}
.ruler::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 64px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(20, 21, 26, 0.85) 0 1.5px, transparent 1.5px 9px) right 0 top 6px / 14px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(20, 21, 26, 0.9) 0 2px, transparent 2px 45px) right 0 top 6px / 28px 100% no-repeat,
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 40%),
    #f3c845;
  box-shadow: inset 0 0 0 1.5px rgba(20, 21, 26, 0.15), 0 10px 20px -14px rgba(20, 21, 26, 0.45);
}
.ruler::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: var(--measure, 0%);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255, 77, 157, 0.18), rgba(255, 77, 157, 0.36));
  border-bottom: 3px solid var(--pink-ink);
  transition: height 0.2s linear;
  pointer-events: none;
}
.ruler__mark {
  position: relative;
  padding-bottom: 2.75rem;
}
.ruler__mark:last-child {
  padding-bottom: 0.5rem;
}
.ruler__mark::before {
  content: "";
  position: absolute;
  left: calc((64px + 2.25rem) * -1 + 10px);
  top: 0.95rem;
  width: calc(64px + 1.75rem);
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.ruler__year {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: 1.15rem;
  line-height: 1.1;
}
.ruler__mark h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem);
}
.ruler__mark p {
  max-width: 52ch;
  color: var(--ink-2);
}
.ruler__mark--now .ruler__year {
  background: var(--pink);
  color: var(--ink);
}

/* ---------- Zespół ---------- */
.crew {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .crew {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 2.5rem;
  }
  .member:nth-child(4n + 2),
  .member:nth-child(4n + 4) {
    translate: 0 2.5rem;
  }
}
.member {
  perspective: 1400px;
  container-type: inline-size;
}
.member__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 7 / 8.6;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: none;
  color: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.member__card[aria-pressed="true"] {
  transform: rotateY(180deg);
}
.member__face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.member__face--pet {
  background: var(--bg-2);
}
.member__face--pet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.member__card:hover .member__face--pet img {
  transform: scale(1.05);
}
.member__pet {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  border-left: 6px solid var(--c);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}
.member__pet strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.55rem;
  line-height: 1;
}
.member__pet span {
  font-size: 0.82rem;
  color: var(--ink-2);
}
.member__face--human {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem;
  background: var(--ink);
  color: #f4f4f0;
  transform: rotateY(180deg);
}
.member__avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.35rem;
}
.member__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.35rem;
  line-height: 1.1;
}
.member__role {
  color: var(--lime);
  font-weight: 600;
  font-size: 0.88rem;
}
.member__quote {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(244, 244, 240, 0.78);
}
@container (max-width: 230px) {
  .member__quote {
    display: none;
  }
  .member__pet strong {
    font-size: 1.25rem;
  }
  .member__face--human {
    padding: 1rem;
  }
  .member__name {
    font-size: 1.15rem;
  }
}
.member__card--join {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 2px dashed rgba(20, 21, 26, 0.3);
  text-decoration: none;
  transition: border-color var(--d-2), background-color var(--d-2);
}
.member__card--join:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.member__card--join strong {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.55rem;
  line-height: 1.05;
}
.member__card--join > span:not(.member__join-icon):not(.link-arrow) {
  font-size: 0.92rem;
  color: var(--ink-2);
}
.member__card--join .link-arrow {
  align-self: flex-start;
}
.member__join-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
}
.member__join-icon .icon {
  width: 28px;
  height: 28px;
}
@container (max-width: 230px) {
  .member__card--join > span:not(.member__join-icon):not(.link-arrow) {
    font-size: 0.82rem;
  }
  .member__card--join strong {
    font-size: 1.2rem;
  }
}

/* ---------- Galeria gabinetu ---------- */
.place__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.place__nav {
  display: flex;
  gap: 0.5rem;
}
.place__strip {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.75rem;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
.place__strip:focus-visible {
  outline-offset: -3px;
}
.place__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.place__item figure {
  position: relative;
  height: clamp(260px, 32vw, 440px);
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.place__item:nth-child(3) figure {
  aspect-ratio: 4 / 5;
}
.place__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.place__item:hover img {
  transform: scale(1.04);
}
.place__item .dymo {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  rotate: -2deg;
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .place__item figure {
    max-width: 84vw;
  }
}

/* ---------- Wizyta zapoznawcza ---------- */
.meet {
  text-align: center;
}
.meet__inner {
  max-width: calc(860px + var(--gutter) * 2);
}
.meet__tape {
  display: inline-block;
  margin-bottom: 1.75rem;
  rotate: -3deg;
}
.meet__tape span {
  display: inline-block;
  padding: 0.55em 1.1em 0.5em;
  border-radius: 3px;
  background-color: var(--pink-ink);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%, rgba(0, 0, 0, 0.2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 0 -1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 6px 14px -6px rgba(20, 21, 26, 0.5);
}
.meet h2 {
  max-width: 15ch;
  margin-inline: auto;
}
.meet .lead {
  margin: 1.25rem auto 0;
}
.meet__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* strona niewidoczna nie prześwituje przy obrocie */
.member__face--human {
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}
.member__card[aria-pressed="true"] .member__face--human {
  visibility: visible;
  transition-delay: 0s;
}
.member__card[aria-pressed="true"] .member__face--pet {
  visibility: hidden;
  transition: visibility 0s linear 0.32s;
}

@media (max-width: 559px) {
  .dogtags {
    gap: 2.25rem;
  }
  .dogtag__plate {
    max-width: 240px;
    min-height: 170px;
  }
  .dogtag--round .dogtag__plate {
    max-width: 220px;
  }
  .dogtag h3 {
    font-size: 1.3rem;
  }
}
