/* ═══════════════════════════════════════════════════════════
   HÄUSAR TOKIO · SCROLL STORY
   Scoped to .tk-root — no global style bleeding
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────── */
.tk-root {
  --tk-cyan:      #22D3EE;
  --tk-cyan-10:   rgba(34, 211, 238, 0.10);
  --tk-warm:      #F5F0EB;
  --tk-off-white: #F9F8F6;
  --tk-dark:      #0F0F0E;
  --tk-text:      #2A2A28;
  --tk-muted:     #87878A;
  --tk-border:    rgba(26, 26, 24, 0.08);
  --tk-ease:      cubic-bezier(.25, .1, .25, 1);
  --tk-ease-out:  cubic-bezier(0, .55, .45, 1);
  --tk-font-d:    'Urbanist', system-ui, sans-serif;
  --tk-font-b:    'DM Sans', system-ui, sans-serif;
  font-family: var(--tk-font-b);
}

.tk-root *, .tk-root *::before, .tk-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tk-root img {
  display: block;
  max-width: 100%;
}

/* Imágenes de contenido que van en flujo normal */
.tk-step-block__img img,
.tk-dcard__media img,
.tk-detail-img img,
.tk-tech-block__img img {
  height: auto;
}

.tk-root h2, .tk-root h3 {
  font-weight: inherit;
  line-height: 67px;
}

/* ─── Shared ─────────────────────────────────────────────── */
.tk-section-label {
  font-family: var(--tk-font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--tk-cyan);
  display: block;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   S1 · HERO
   ═══════════════════════════════════════════════════════════ */
.tk-hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: var(--tk-warm);
}

.tk-hero__bg {
  position: absolute;
  inset: 0;
}

.tk-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  will-change: transform;
}

/* Gradient overlay: warm beige on left, fades to transparent */
.tk-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--tk-warm) 28%,
    rgba(245, 240, 235, .75) 50%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}

.tk-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(28px, 7vw, 100px);
  max-width: 620px;
}

.tk-hero__pretitle {
  font-family: var(--tk-font-d);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tk-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
}

.tk-hero__pretitle span { color: var(--tk-cyan); }

.tk-hero__title {
  font-family: var(--tk-font-d);
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--tk-text);
  margin-bottom: 24px;
  line-height: 1.08;
}

.tk-line {
  display: block;
  will-change: clip-path;
}

.tk-hero__sub {
  font-family: var(--tk-font-b);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--tk-muted);
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(16px);
}

/* ─── Buttons ────────────────────────────────────────────── */
.tk-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tk-font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tk-text);
  border: 1.5px solid rgba(26, 26, 24, .22);
  padding: 14px 26px;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .25s, background .25s, gap .25s;
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
}

.tk-btn-ghost:hover {
  border-color: var(--tk-text);
  background: rgba(26, 26, 24, .04);
  gap: 14px;
}

.tk-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tk-font-d);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--tk-dark);
  background: white;
  border: none;
  padding: 18px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .25s, color .25s, gap .25s;
}

.tk-btn-primary:hover {
  background: var(--tk-cyan);
  color: white;
  gap: 14px;
}

/* ─── Scroll cue ─────────────────────────────────────────── */
.tk-hero__scroll-cue {
  position: absolute;
  bottom: 36px;
  left: clamp(28px, 7vw, 100px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
}

.tk-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--tk-muted), transparent);
  animation: tk-line-pulse 2.2s ease-in-out infinite;
}

.tk-scroll-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tk-muted);
}

@keyframes tk-line-pulse {
  0%   { opacity: .2; transform: scaleY(.7) translateY(-6px); }
  50%  { opacity: 1;  transform: scaleY(1) translateY(0); }
  100% { opacity: .2; transform: scaleY(.7) translateY(6px); }
}

/* ─── SVG progress line (story section) ──────────────────── */
.tk-story__progress {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2px;
  height: 50%;
}

.tk-story__progress svg {
  width: 100%;
  height: 100%;
}

.tk-progress-track {
  stroke: rgba(26, 26, 24, .08);
  stroke-width: 2;
}

.tk-progress-fill {
  stroke: var(--tk-cyan);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  will-change: stroke-dashoffset;
}

/* ═══════════════════════════════════════════════════════════
   S2 · SCROLL STORY
   ═══════════════════════════════════════════════════════════ */
.tk-story {
  background: var(--tk-warm);
}

.tk-story__inner {
  display: flex;
  align-items: flex-start;
}

/* ─── Left: sticky image panel ───────────────────────────── */
.tk-story__left {
  width: 55%;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tk-warm);
}

.tk-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.tk-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  clip-path: inset(0 100% 0 0);
  transform: scale(1.06);
  will-change: clip-path, transform;
}

.tk-img:first-child {
  clip-path: inset(0);
  transform: scale(1);
}

/* ─── Counter ────────────────────────────────────────────── */
.tk-story__counter {
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tk-font-d);
  font-size: 12px;
  color: var(--tk-muted);
  letter-spacing: .04em;
}

.tk-count-current {
  color: var(--tk-text);
  font-size: 15px;
  font-weight: 600;
  min-width: 20px;
  transition: all .35s var(--tk-ease);
}

.tk-count-sep {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .4;
}

/* ─── Progress dots ──────────────────────────────────────── */
.tk-story__dots {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.tk-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(26, 26, 24, .2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}

.tk-dot.is-active {
  background: var(--tk-cyan);
  transform: scale(1.6);
}

.tk-dot:hover:not(.is-active) {
  background: rgba(26, 26, 24, .5);
}

/* ─── Right: scrolling text ──────────────────────────────── */
.tk-story__right {
  width: 45%;
  padding-top: 12vh;
  padding-bottom: 12vh;
}

.tk-step-block {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(28px, 5vw, 68px);
}

/* Mobile step image (hidden on desktop) */
.tk-step-block__img {
  display: none;
}

.tk-step-tag {
  font-family: var(--tk-font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tk-cyan);
  margin-bottom: 14px;
}

.tk-step-num {
  font-family: var(--tk-font-d);
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 200;
  color: rgba(26, 26, 24, .07);
  line-height: 1;
  letter-spacing: -.03em;
  user-select: none;
  margin-bottom: -8px;
}

.tk-step-title {
  font-family: var(--tk-font-d);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--tk-text);
  margin-bottom: 20px;
}

.tk-step-desc {
  font-size: clamp(14px, 1.1vw, 15px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--tk-muted);
  max-width: 360px;
}

/* ═══════════════════════════════════════════════════════════
   S3 · BENEFICIOS
   ═══════════════════════════════════════════════════════════ */
.tk-benefits {
  background: white;
  padding: clamp(72px, 10vw, 140px) clamp(28px, 7vw, 96px);
}

.tk-benefits__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tk-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--tk-border);
  margin-top: 48px;
}

.tk-benefit-card {
  padding: 48px 32px 52px;
  border-right: 1.5px solid var(--tk-border);
  transition: background .25s;
}

.tk-benefit-card:last-child {
  border-right: none;
}

.tk-benefit-card:hover {
  background: var(--tk-off-white);
}

.tk-benefit-icon {
  color: var(--tk-cyan);
  margin-bottom: 24px;
  line-height: 0;
}

.tk-benefit-title {
  font-family: var(--tk-font-d);
  font-size: 17px;
  font-weight: 600;
  color: var(--tk-text);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.tk-benefit-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--tk-muted);
}

/* ═══════════════════════════════════════════════════════════
   S4 · DETALLES
   ═══════════════════════════════════════════════════════════ */
.tk-details {
  background: var(--tk-off-white);
  padding: clamp(72px, 10vw, 140px) clamp(28px, 7vw, 96px);
}

.tk-details__header {
  max-width: 1200px;
  margin: 0 auto 32px;
}

.tk-details__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.tk-dcard {
  background: white;
  overflow: hidden;
}

.tk-dcard__media {
  aspect-ratio: 1;
  overflow: hidden;
}

.tk-dcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--tk-ease);
  will-change: transform;
}

.tk-dcard__media {
  will-change: clip-path;
}

.tk-dcard:hover .tk-dcard__media img {
  transform: scale(1.04);
}

.tk-dcard__body {
  padding: 28px 32px 36px;
}

.tk-dcard__tag {
  font-family: var(--tk-font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tk-cyan);
  margin-bottom: 10px;
}

.tk-dcard__title {
  font-family: var(--tk-font-d);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--tk-text);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tk-dcard__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--tk-muted);
}

/* ═══════════════════════════════════════════════════════════
   S5 · TECNOLOGÍA
   ═══════════════════════════════════════════════════════════ */
.tk-tech {
  background: var(--tk-dark);
  padding: clamp(72px, 10vw, 140px) clamp(28px, 7vw, 96px);
}

.tk-tech .tk-section-label {
  color: rgba(34, 211, 238, .65);
}

.tk-tech__header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.tk-tech__title {
  font-family: var(--tk-font-d);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: white;
}

.tk-tech__blocks {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-tech-block {
  display: flex;
  min-height: 400px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

.tk-tech-block--rev {
  flex-direction: row-reverse;
}

.tk-tech-block__img {
  width: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.tk-tech-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--tk-ease);
  will-change: transform;
}

.tk-tech-block__img {
  will-change: clip-path;
}

.tk-tech-block:hover .tk-tech-block__img img {
  transform: scale(1.04);
}

.tk-tech-block__text {
  width: 50%;
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tk-tech-tag {
  font-family: var(--tk-font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tk-cyan);
  margin-bottom: 18px;
}

.tk-tech-title {
  font-family: var(--tk-font-d);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: white;
  margin-bottom: 20px;
}

.tk-tech-desc {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.75;
  color: rgba(255, 255, 255, .45);
  max-width: 420px;
}

/* ═══════════════════════════════════════════════════════════
   S6 · CTA
   ═══════════════════════════════════════════════════════════ */
.tk-cta {
  position: relative;
  height: clamp(480px, 55vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.tk-cta__bg {
  position: absolute;
  inset: 0;
}

.tk-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.tk-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 6, .52);
}

.tk-cta__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 64px);
}

.tk-cta__eyebrow {
  font-family: var(--tk-font-d);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tk-cyan);
  margin-bottom: 20px;
}

.tk-cta__title {
  font-family: var(--tk-font-d);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: white;
  margin-bottom: 44px;
}

.tk-word {
  display: inline-block;
  will-change: clip-path;
}

/* ─── CTA background blur-to-focus ───────────────────────── */
.tk-cta__bg img {
  will-change: transform, filter;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ─── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tk-story__left  { width: 50%; }
  .tk-story__right { width: 50%; }

  .tk-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tk-benefit-card:nth-child(2) { border-right: none; }
  .tk-benefit-card:nth-child(1),
  .tk-benefit-card:nth-child(2) {
    border-bottom: 1.5px solid var(--tk-border);
  }
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Hero: text overlays bottom of image */
  .tk-hero::after {
    background: linear-gradient(
      to top,
      rgba(245, 240, 235, 1) 38%,
      rgba(245, 240, 235, .7) 62%,
      transparent
    );
  }
  .tk-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 44px;
    max-width: 100%;
    justify-content: flex-end;
  }
  .tk-hero__bg img {
    object-position: center top;
  }

  /* Story: disable sticky, stack vertically */
  .tk-story__inner { flex-direction: column; }
  .tk-story__left  { display: none; }
  .tk-story__right {
    width: 100%;
    padding: 0 0 32px;
  }
  .tk-step-block {
    min-height: auto;
    padding: 0 0 48px;
  }
  .tk-step-block__img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 28px;
  }
  .tk-step-block__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tk-step-block__content {
    padding: 0 24px;
  }
  .tk-step-num { font-size: 44px; }

  /* Benefits */
  .tk-benefits__grid {
    grid-template-columns: 1fr;
  }
  .tk-benefit-card {
    border-right: none;
    border-bottom: 1.5px solid var(--tk-border);
    padding: 32px 24px;
  }
  .tk-benefit-card:nth-child(1),
  .tk-benefit-card:nth-child(2) {
    border-bottom: 1.5px solid var(--tk-border);
  }
  .tk-benefit-card:last-child { border-bottom: none; }

  /* Details */
  .tk-details__grid { grid-template-columns: 1fr; }
  .tk-dcard__body   { padding: 22px 20px 28px; }

  /* Tech */
  .tk-tech-block,
  .tk-tech-block--rev {
    flex-direction: column;
  }
  .tk-tech-block__img,
  .tk-tech-block__text {
    width: 100%;
  }
  .tk-tech-block__img {
    aspect-ratio: 1;
  }
  .tk-tech-block__text {
    padding: 32px 24px 40px;
  }
  .tk-tech-desc { max-width: 100%; }
}
