/* ==========================================================================
   Tezos Ukraine case study — free-form section below the shared hero.
   Built on the same "interesting blocks + light parallax" language as the
   Forklog Consulting case, tuned to Tezos Ukraine's own bakery-on-blockchain
   brand: warm brown/orange gradients, a soft cream background, Roboto-style
   type samples — all still set in the site-wide font used everywhere else.
   ========================================================================== */

:root {
  --tz-dark: #2c201b;
  --tz-brown: #60462f;
  --tz-orange: #c15300;
  --tz-gold-a: #ffb84d;
  --tz-gold-b: #f5892f;
  --tz-cream: #fff8ef;
  --font-display: var(--font-sans);
}

.tz-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--color-bg);
  color: var(--tz-dark);
}

.tz-section--dark {
  background: linear-gradient(155deg, var(--tz-brown), var(--tz-dark));
  color: #ffffff;
}

.tz-section--cream {
  background: var(--tz-cream);
}

.tz-section__inner {
  position: relative;
  z-index: 1;
}

.tz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tz-gold-a);
  margin-bottom: 20px;
}

.tz-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--tz-gold-a);
}

.tz-eyebrow--dark {
  color: var(--tz-orange);
}

.tz-eyebrow--dark::before {
  background: var(--tz-orange);
}

.tz-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 16px;
}

.tz-lede {
  max-width: 720px;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.tz-section--dark .tz-lede {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Full-width photo right under the hero ---------- */

.tz-photo-full {
  margin-top: clamp(-8px, 0vw, 0px);
}

.tz-photo-full img {
  display: block;
  width: 100%;
  border-radius: 0;
}

/* ---------- Research steps ---------- */

.tz-steps {
  list-style: none;
  margin: 32px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Lines up with the 3-column photo grid below: same columns/gap as
   .tz-research, and the lede spans exactly 2 of its 3 columns. */
#tz-research .tz-lede {
  max-width: calc(66.667% - 8px);
  margin-bottom: clamp(40px, 6vw, 56px);
}

.tz-steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.tz-steps__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--tz-gold-a);
}

.tz-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.tz-research {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tz-research figure {
  margin: 0;
}

.tz-research__frame {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7.33px 21.98px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tz-research__frame:hover {
  transform: translateY(-6px);
}

.tz-research img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 644;
  object-fit: cover;
  background: #fff;
}

/* Caption sits below the white photo card, directly on the section's own
   dark background — plain text, no white strip behind it. */
.tz-research figcaption {
  margin-top: 12px;
  padding: 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Wireframing ---------- */

.tz-wireframe-shot {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: #f0e9e1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.tz-wireframe-shot img {
  display: block;
  width: 100%;
}

/* ---------- UI design showcase ---------- */

.tz-section--ui .tz-section__inner {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.tz-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
}

.tz-showcase__row {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7.33px 21.98px rgba(0, 0, 0, 0.25);
}

.tz-showcase__row img {
  display: block;
  width: 100%;
  background: #fff;
}

.tz-mobile-row {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tz-mobile-row__item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 7.33px 21.98px rgba(0, 0, 0, 0.25);
}

.tz-mobile-row__item img {
  display: block;
  width: 100%;
  background: #fff;
}

/* ---------- Icons design ---------- */

.tz-icons-intro {
  margin-top: clamp(48px, 7vw, 72px);
}

.tz-icons-grid {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 760px;
}

.tz-icon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 7.33px 21.98px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tz-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 32, 27, 0.14);
}

.tz-icon-card img {
  width: 56%;
  height: 56%;
}

/* ---------- Typography & colors ---------- */

.tz-type-sample {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0 40px;
}

.tz-type-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tz-type-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tz-type-row__aa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  min-width: 96px;
}

.tz-type-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}

.tz-type-row__charset {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.tz-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

.tz-color {
  height: 128px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tz-color__name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.tz-color__hex {
  font-size: 12px;
  opacity: 0.75;
}

/* This page has no accordion list, so paragraphs sit flush against the
   .container edge (same free-form layout as Forklog Consulting) — Result
   should match that edge instead of the shared accordion-centering default. */
.case-result {
  max-width: 936px;
  margin: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px) max(calc((100vw - var(--container-width)) / 2 + var(--container-pad)), var(--container-pad));
  padding-right: var(--container-pad);
  padding-left: 0;
}

/* ---------- Scroll reveal (fade + slide only — no scale/crop) ---------- */

.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .tz-steps {
    grid-template-columns: 1fr;
  }

  .tz-research {
    grid-template-columns: 1fr;
  }

  .tz-lede {
    max-width: none;
  }

  .tz-mobile-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .tz-icons-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tz-colors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tz-mobile-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tz-icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tz-type-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tz-type-row__aa {
    font-size: 56px;
  }
}
