@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Outfit:wght@300;400;500&display=swap');

/* ===== Section shell =====
   reference: py-28 md:py-64 px-8 md:px-16 overflow-hidden relative */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 72px 24px;
}

@media (min-width: 640px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw {
    padding: 112px 32px;
  }
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw {
    padding: 256px 64px;
  }
}

/* Warm bottom vignette — reference: radial-gradient ellipse 80% 60% at 50% 100% */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(180, 165, 145, 0.08) 0%, transparent 70%);
}

/* Inner container — reference: max-w-6xl mx-auto */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__inner {
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
}

/* ===== Header =====
   reference: text-center mb-16 md:mb-40 */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__header {
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__header {
    margin-bottom: 64px;
  }
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__header {
    margin-bottom: 160px;
  }
}

/* ===== Eyebrow — FadeUp =====
   reference FadeUp: opacity 0→1, y 14→0, duration 0.9s, ease [0.22,1,0.36,1]
   viewport: once:true, margin:'-10% 0px'
   Triggered by own observer (eyebrowRef), class --inview added when visible */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: #9A9A9A;
  margin: 0 0 28px;  /* mb-7 = 1.75rem */
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__eyebrow--inview {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Headline =====
   reference: font-display font-light clamp(2.2rem,8vw,5.5rem) leading-[0.95] */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.519rem, 8vw, 6.296rem);
  font-weight: 300;
  line-height: 0.95;
  color: #1A1A1A;
  margin: 0;
  display: block;
}

/* MaskedLines — each line in overflow:hidden wrapper, inner rises from y:115%→0 */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__line-wrap {
  display: block;
  overflow: hidden;
  padding-top: 0.12em;
  margin-top: -0.12em;
  padding-bottom: 0.55em;
  margin-bottom: -0.55em;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__line-inner {
  display: block;
  transform: translateY(115%);
  will-change: transform;
  transition: transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Line 0: delay = delay + 0 * stagger = 0s */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__line-inner--0.arcana-hiw__line-inner--inview {
  transform: translateY(0);
  transition-delay: 0s;
}

/* Line 1: delay = delay + 1 * stagger = 0.08s */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__line-inner--1.arcana-hiw__line-inner--inview {
  transform: translateY(0);
  transition-delay: 0.08s;
}

/* Italic metallic accent — same chrome gradient as hero & brand story */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__accent {
  font-style: italic;
  background-image: linear-gradient(
    180deg,
    #d9dbdf 0%,
    #bdc0c5 32%,
    #9a9ea3 66%,
    #84888d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18))
          drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

/* ===== Steps grid =====
   reference: md:grid-cols-3 gap-x-16 gap-y-16 md:gap-y-24
   = column-gap 4rem=64px, row-gap 4rem=64px / 6rem=96px */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 64px;
    row-gap: 96px;
  }
}

/* ===== Step card =====
   reference motion.div: initial:{opacity:0, y:36}
   animate:{opacity:1, y:0} when inView (section observer at -80px)
   transition: duration:1.3, delay:0.2+i*0.22, ease:[0.16,1,0.3,1]
   Triggered when .arcana-hiw__grid gets --inview class. */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__step {
  position: relative;
  padding-top: 32px;   /* pt-8 = 2rem */
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__step {
    padding-top: 40px;  /* md:pt-10 = 2.5rem */
  }
}

/* Staggered entrance: delay = 0.2 + i * 0.22 */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--0 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.64s;
}

/* ===== Hairline =====
   reference motion.div: initial:{width:0}, animate:{width:'100%'} when inView
   transition: duration:1.2, delay:0.4+i*0.22, ease:[0.16,1,0.3,1] */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__hairline {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: rgba(0, 0, 0, 0.08);  /* var(--border) */
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered hairline draw-in: delay = 0.4 + i * 0.22 */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--0 .arcana-hiw__hairline {
  width: 100%;
  transition-delay: 0.4s;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--1 .arcana-hiw__hairline {
  width: 100%;
  transition-delay: 0.62s;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__grid--inview .arcana-hiw__step--2 .arcana-hiw__hairline {
  width: 100%;
  transition-delay: 0.84s;
}

/* ===== Glyph coin =====
   reference: mb-9 inline-flex h-12 w-12 cursor-default items-center justify-center
   rounded-full border, borderColor: var(--border-mid)=rgba(0,0,0,0.12)
   color: rgba(0,0,0,0.42), group-hover:border-black/20, transition-colors duration-500
   whileHover:{rotate:360}, transition:{duration:1.1, ease:[0.16,1,0.3,1]} */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__glyph-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.42);
  cursor: default;
  margin-bottom: 36px;  /* mb-9 = 2.25rem */
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__step:hover .arcana-hiw__glyph-coin {
  transform: rotate(360deg);
  border-color: rgba(0, 0, 0, 0.20);
}

/* Glyph character inside the coin — text-xl = 1.25rem */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__glyph-char {
  font-family: 'Outfit', sans-serif;
  font-size: 1.431rem;
}

/* ===== Index row =====
   reference: mb-5 flex items-center gap-3
   number: font-display font-light leading-none text-metallic-white 2.3rem
   rule: h-px w-8 bg-border-mid (rgba(0,0,0,0.12))
   total: font-body text-[10px] tracking-[0.3em] var(--text-muted) */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__index-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;  /* mb-5 = 1.25rem */
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__index-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.633rem;
  line-height: 1;
  background-image: linear-gradient(180deg, #d9dbdf 0%, #bdc0c5 32%, #9a9ea3 66%, #84888d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__index-rule {
  display: block;
  height: 1px;
  width: 32px;  /* w-8 = 2rem */
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* Gold dot — rgba(180,150,90,0.55) per Next.js reference */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__index-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(180, 150, 90, 0.55);
  flex-shrink: 0;
}

/* ===== Title =====
   reference: font-display font-light 1.6rem mb-6
   group-hover:translate-x-1.5 = translateX(0.375rem ≈ 6px)
   transition-transform duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.832rem;
  font-weight: 300;
  color: #1A1A1A;
  margin: 0 0 24px;  /* mb-6 = 1.5rem */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__step:hover .arcana-hiw__title {
  transform: translateX(6px);  /* translate-x-1.5 = 0.375rem ≈ 6px */
}

/* ===== Description =====
   reference: font-body font-light text-[16px] md:text-[14px]
   leading-[1.9] md:leading-[2] max-w-[34ch] var(--text-secondary) */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__desc {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  color: #4F4F4F;
  max-width: 34ch;
  margin: 0;
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__desc {
    font-size: 16px;
    line-height: 2;
  }
}

/* ===== Compat line =====
   reference motion.p: initial:{opacity:0}, animate:{opacity:1} when inView
   transition: duration:1.4, delay:1.2
   text-center font-body text-[10px] tracking-[0.28em] uppercase mt-16 md:mt-28
   Text is "Tüm modern iOS..." — CSS uppercases for display */
.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__compat {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9A9A9A;
  margin-top: 64px;   /* mt-16 = 4rem */
  opacity: 0;
  transition: opacity 1.4s ease 1.2s;
}

@media (min-width: 768px) {
  .cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__compat {
    margin-top: 112px;  /* md:mt-28 = 7rem */
  }
}

.cc_xzKzT14X1H_CJhOmJLfNZ .arcana-hiw__compat--inview {
  opacity: 1;
}
