/**
 * Inner pages: O nás, Reference, and the legal/GDPR document.
 *
 * These share the service pages' section rhythm but not their content model,
 * so the shell classes (.tim-pg*) live here while tokens and buttons come from
 * base.css. Breakpoint is 900px, matching the rest of the theme.
 */

/* ---------------------------------------------------------------- shell */

.tim-pg {
  background: var(--tim-dark);
  color: var(--tim-on-dark);
}

.tim-pg section {
  position: relative;
  overflow: hidden;
  padding: 110px clamp(18px, 5vw, 64px);
}

.tim-pg__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.tim-pg__inner--narrow {
  max-width: 900px;
}

.tim-pg__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tim-pg__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tim-magenta-light);
  font: 600 13px var(--tim-font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.tim-pg__dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--tim-magenta);
  animation: tim-pulse-dot 2.4s ease-in-out infinite;
}

.tim-pg__title {
  margin: 0;
  font: 800 clamp(36px, 4vw, 58px) / 1.1 var(--tim-font-display);
  color: var(--tim-on-dark);
  letter-spacing: -1.5px;
  text-wrap: pretty;
}

.tim-pg__accent {
  color: var(--tim-magenta);
  text-shadow: 0 0 60px rgba(230, 0, 126, 0.5);
}

/* Oversized outlined word; hidden below 1000px as in the design. */
.tim-pg__ghost {
  position: absolute;
  font: 800 clamp(160px, 22vw, 320px) / 1 var(--tim-font-display);
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
}

.tim-pg__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 900px 560px at 20% 50%,
    rgba(230, 0, 126, 0.1) 0%,
    rgba(230, 0, 126, 0) 70%
  );
}

.tim-pg__section--light {
  background: var(--tim-cream);
  color: var(--tim-ink);
}

.tim-pg__section--light .tim-pg__title {
  color: var(--tim-ink);
}

.tim-pg__section--light .tim-pg__kicker {
  color: var(--tim-magenta);
}

.tim-pg__section--light .tim-pg__ghost {
  color: rgba(20, 18, 22, 0.04);
}

/* ----------------------------------------------------------------- hero */

.tim-pg-hero {
  padding-top: 190px;
  padding-bottom: 100px;
}

.tim-pg-hero__body {
  position: relative;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tim-pg-hero__title {
  margin: 0;
  font: 800 clamp(42px, 5.8vw, 88px) / 1.06 var(--tim-font-display);
  color: var(--tim-on-dark);
  letter-spacing: -2px;
  text-wrap: pretty;
}

/* Serif italic lede — the design's one deliberate break from the body font. */
.tim-pg-hero__lede {
  margin: 0;
  font: italic 500 clamp(19px, 2vw, 26px) / 1.5 var(--tim-font-quote);
  color: var(--tim-on-dark-muted);
  max-width: 640px;
  text-wrap: pretty;
}

.tim-pg-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tim-pg-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tim-pg-stat__value {
  font: 800 clamp(32px, 4vw, 44px) var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tim-magenta);
}

.tim-pg-stat__label {
  color: var(--tim-on-dark-dim);
  font: 500 14px var(--tim-font-body);
}

/* --------------------------------------------------------------- values */

.tim-pg-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.tim-pg-value {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--tim-card);
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: var(--tim-shadow-light);
  transition: transform 0.35s var(--tim-ease), box-shadow 0.35s var(--tim-ease);
}

.tim-pg-value:hover {
  transform: translateY(-6px);
  box-shadow: var(--tim-shadow-light-strong);
}

.tim-pg-value__num {
  font: 800 54px/1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tim-magenta);
}

.tim-pg-value__name {
  margin: 0;
  font: 800 24px var(--tim-font-display);
  color: var(--tim-ink);
}

.tim-pg-value__text {
  margin: 0;
  color: var(--tim-ink-600);
  font: 400 16px/1.6 var(--tim-font-body);
  text-wrap: pretty;
}

.tim-pg-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tim-pg-pill {
  border: 1.5px solid rgba(20, 18, 22, 0.18);
  color: var(--tim-ink-700);
  background: var(--tim-card);
  font: 600 14px var(--tim-font-body);
  padding: 11px 24px;
  border-radius: var(--tim-radius-pill);
}

.tim-pg-pill--dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--tim-on-dark-muted);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 18px;
}

/* -------------------------------------------------------------- founder */

.tim-pg-founder {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 64px;
  align-items: center;
}

.tim-pg-founder__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--tim-line-dark);
  box-shadow: var(--tim-shadow-dark);
  background: var(--tim-dark-panel);
}

.tim-pg-founder__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stand-in when no portrait is set, so the layout keeps its proportions. */
.tim-pg-founder__photo--empty::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 clamp(60px, 9vw, 110px) var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 2px rgba(230, 0, 126, 0.5);
}

.tim-pg-founder__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tim-pg-founder__quote {
  margin: 0;
  font: italic 500 clamp(19px, 1.8vw, 24px) / 1.55 var(--tim-font-quote);
  color: var(--tim-on-dark-muted);
  max-width: 560px;
  text-wrap: pretty;
}

.tim-pg-partners {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  color: var(--tim-on-dark-dim);
  font: 600 14px var(--tim-font-body);
  letter-spacing: 1px;
}

.tim-pg-partners__sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------ CTA strip */

.tim-pg-cta {
  background: var(--tim-magenta);
  padding: 84px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.tim-pg-cta__title {
  margin: 0;
  font: 800 clamp(30px, 3.6vw, 50px) / 1.1 var(--tim-font-display);
  color: var(--tim-on-dark);
  letter-spacing: -1px;
}

.tim-pg-cta__text {
  color: rgba(255, 255, 255, 0.75);
  font: 400 17px var(--tim-font-body);
}

.tim-pg-cta__btn {
  background: var(--tim-ink);
  color: var(--tim-on-dark);
  font: 600 17px var(--tim-font-body);
  padding: 18px 40px;
  border-radius: var(--tim-radius-pill);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--tim-ease);
}

.tim-pg-cta__btn:hover {
  transform: scale(1.05);
  color: var(--tim-on-dark);
}

/* ---------------------------------------------------- reference: trophies */

.tim-ref-case {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
}

.tim-ref-case:nth-child(even) .tim-ref-case__media {
  order: -1;
}

.tim-ref-case__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tim-ref-case__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tim-ref-case__badge {
  border: 1.5px solid var(--tim-magenta);
  color: var(--tim-on-dark);
  background: rgba(13, 11, 15, 0.5);
  font: 600 12px var(--tim-font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--tim-radius-pill);
  box-shadow: 0 0 24px var(--tim-glow-soft);
}

.tim-ref-case__index {
  color: var(--tim-on-dark-dim);
  font: 600 12px var(--tim-font-body);
  letter-spacing: 2px;
}

.tim-ref-case__name {
  margin: 0;
  font: 800 clamp(30px, 4.2vw, 58px) / 1.05 var(--tim-font-display);
  color: var(--tim-on-dark);
  letter-spacing: -2px;
  text-wrap: pretty;
}

/*
 * The headline metric. In the design this is the largest element on the case
 * after the name, so it stays big here too and the label sits under it.
 */
.tim-ref-case__metric {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tim-ref-case__metric strong {
  font: 800 clamp(48px, 7vw, 110px) / 1 var(--tim-font-display);
  color: var(--tim-magenta);
  letter-spacing: -3px;
  text-shadow: 0 0 60px var(--tim-glow-soft);
}

.tim-ref-case__metric span {
  color: var(--tim-on-dark-dim);
  font: 500 14px var(--tim-font-body);
  letter-spacing: 1px;
}

.tim-ref-case__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font: 400 17px/1.6 var(--tim-font-body);
  max-width: 520px;
  text-wrap: pretty;
}

.tim-ref-case__tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.tim-ref-case__tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--tim-on-dark-dim);
  background: rgba(13, 11, 15, 0.4);
  font: 500 13px var(--tim-font-body);
  padding: 7px 16px;
  border-radius: var(--tim-radius-pill);
}

.tim-ref-case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--tim-glass-border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 60px var(--tim-glow-soft);
  background: var(--tim-dark-panel);
  transform: perspective(1100px) rotateY(-7deg);
  transition: transform 0.8s var(--tim-ease), box-shadow 0.8s;
}

.tim-ref-case:nth-child(even) .tim-ref-case__media {
  transform: perspective(1100px) rotateY(7deg);
}

.tim-ref-case__media:hover {
  transform: perspective(1100px) rotateY(0deg);
}

.tim-ref-case__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tim-ref-case__rec {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  display: flex;
  align-items: flex-end;
  padding: 0 18px 12px;
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.75), rgba(13, 11, 15, 0));
  color: rgba(255, 255, 255, 0.7);
  font: 600 12px var(--tim-font-body);
  letter-spacing: 2px;
  pointer-events: none;
}

/* ------------------------------------------------- reference: web vitrine */

.tim-ref-webs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.tim-ref-web {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid var(--tim-line-dark);
  background: var(--tim-dark-panel-2);
  text-decoration: none;
  transition: border-color 0.5s, transform 0.5s var(--tim-ease);
}

.tim-ref-web:hover {
  border-color: rgba(230, 0, 126, 0.6);
  transform: translateY(-6px);
}

.tim-ref-web__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.55;
  transition: opacity 0.6s;
}

.tim-ref-web:hover .tim-ref-web__media {
  opacity: 1;
}

.tim-ref-web__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 11, 15, 0.94) 0%, rgba(13, 11, 15, 0.15) 60%);
}

.tim-ref-web__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 32px;
}

.tim-ref-web__name {
  margin: 0;
  font: 800 clamp(22px, 2.4vw, 30px) var(--tim-font-display);
  color: var(--tim-on-dark);
}

.tim-ref-web__text {
  margin: 0;
  color: var(--tim-on-dark-muted);
  font: 400 15px/1.55 var(--tim-font-body);
  max-width: 420px;
  text-wrap: pretty;
}

.tim-ref-web__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tim-ref-web__tag {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(13, 11, 15, 0.5);
  color: var(--tim-on-dark-muted);
  font: 500 12px var(--tim-font-body);
  padding: 5px 13px;
  border-radius: var(--tim-radius-pill);
}

/* --------------------------------------------------- reference: marquee */

/* The front page has its own marquee (dark text on cream). This one is the
   magenta band from the Reference design, so it is defined rather than reused. */
.tim-ref-marquee {
  background: var(--tim-magenta);
  padding: 16px 0;
  overflow: hidden;
}

.tim-ref-marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: tim-marquee 26s linear infinite;
}

.tim-ref-marquee__item {
  color: var(--tim-on-dark);
  font: 800 17px var(--tim-font-display);
  letter-spacing: 1px;
  white-space: nowrap;
}

.tim-ref-marquee__item::after {
  content: "✦";
  color: rgba(255, 255, 255, 0.5);
  margin-left: 56px;
}

/* ------------------------------------------------------- contact details */

.tim-pg-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tim-pg-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 26px;
  min-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tim-radius-card);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

a.tim-pg-contact:hover,
a.tim-pg-contact:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.tim-pg-contact__label {
  color: var(--tim-on-dark-dim);
  font: 600 12px var(--tim-font-body);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tim-pg-contact__value {
  color: var(--tim-on-dark);
  font: 500 17px/1.4 var(--tim-font-body);
}

/* The contact hero is dark, so its pills use the dark treatment even though
   the markup reuses the light .tim-pg-pill class shared with other pages. */
.tim-pg-hero .tim-pg-pill {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--tim-on-dark-muted);
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.tim-pg-hero .tim-pg-pill:hover,
.tim-pg-hero .tim-pg-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--tim-on-dark);
}

@media (prefers-reduced-motion: reduce) {
  .tim-ref-marquee__track {
    animation: none;
  }
}

/* ---------------------------------------------------- reference: quotes */

.tim-ref-quote {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tim-ref-quote__mark {
  font: 800 90px/0.5 var(--tim-font-display);
  color: var(--tim-magenta);
}

.tim-ref-quote__text {
  margin: 0;
  font: italic 500 clamp(22px, 3vw, 40px) / 1.4 var(--tim-font-quote);
  color: var(--tim-ink);
  max-width: 900px;
  text-wrap: pretty;
}

.tim-ref-quote__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tim-ref-quote__name {
  font: 600 18px var(--tim-font-body);
  color: var(--tim-ink);
}

.tim-ref-quote__role {
  font: 400 15px var(--tim-font-body);
  color: var(--tim-ink-500);
}

/* --------------------------------------------------------- legal / GDPR */

.tim-pg--legal {
  background: var(--tim-cream);
  color: var(--tim-ink);
}

.tim-pg--legal .tim-pg-hero__title {
  color: var(--tim-ink);
}

.tim-pg--legal .tim-pg__kicker {
  color: var(--tim-magenta);
}

.tim-legal__meta {
  color: var(--tim-ink-500);
  font: 400 15px var(--tim-font-body);
}

.tim-legal__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tim-legal__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--tim-card);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(20, 18, 22, 0.06);
}

.tim-legal__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tim-legal__num {
  font: 800 26px/1 var(--tim-font-display);
  color: transparent;
  -webkit-text-stroke: 1.2px var(--tim-magenta);
  flex: none;
}

.tim-legal__title {
  margin: 0;
  font: 800 21px var(--tim-font-display);
  color: var(--tim-ink);
  letter-spacing: -0.5px;
}

.tim-legal__body {
  margin: 0;
  color: var(--tim-ink-600);
  font: 400 16px/1.7 var(--tim-font-body);
  text-wrap: pretty;
}

/* Section 04 lists cookie types one per line in a single field. */
.tim-legal__body--lines {
  white-space: pre-line;
}

.tim-legal__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--tim-ink);
  border-radius: 20px;
  padding: 36px 40px;
}

.tim-legal__contact-title {
  margin: 0;
  font: 800 20px var(--tim-font-display);
  color: var(--tim-on-dark);
}

.tim-legal__contact-text {
  margin: 0;
  color: var(--tim-on-dark-muted);
  font: 400 16px/1.6 var(--tim-font-body);
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 1000px) {
  .tim-pg-values,
  .tim-pg-founder,
  .tim-ref-case {
    grid-template-columns: 1fr;
  }

  .tim-pg-founder {
    gap: 36px;
  }

  .tim-pg-founder__photo {
    max-width: 420px;
  }

  /* The tilt reads as a rendering glitch once the case stacks. */
  .tim-ref-case__media,
  .tim-ref-case:nth-child(even) .tim-ref-case__media {
    transform: none;
  }

  .tim-ref-case:nth-child(even) .tim-ref-case__media {
    order: 0;
  }

  .tim-pg__ghost {
    display: none;
  }
}

@media (max-width: 900px) {
  .tim-pg section {
    padding: 72px clamp(18px, 5vw, 64px);
  }

  .tim-pg-hero {
    padding-top: 140px;
    padding-bottom: 64px;
  }

  .tim-pg__inner {
    gap: 32px;
  }

  .tim-pg-stats {
    gap: 28px;
  }

  .tim-pg-cta {
    padding: 60px clamp(18px, 5vw, 64px);
  }

  .tim-legal__item,
  .tim-legal__contact {
    padding: 28px 24px;
  }

  .tim-ref-web {
    min-height: 320px;
  }

  .tim-pg-contact {
    min-width: 0;
    flex: 1 1 100%;
    padding: 16px 20px;
  }
}
