
/* Image Fly-In
   Dark full-viewport 3D depth field. Imagery flies in from deep inside the
   page toward the viewer around a central content hole, with cursor-bend
   parallax on the whole 3D stage. No Webflow - CSS variables and @font-face
   allowed. */





/* ---- Tokens ---- */
.ifi_section {
  --ifi-bg:      var(--warm-950);
  --ifi-tile:    var(--warm-900);
  --ifi-ink:     var(--warm-50);
  --ifi-grey:    var(--color-muted);
  --ifi-muted:   var(--color-muted);
  --ifi-line:    color-mix(in srgb, var(--warm-50) 14%, transparent);
  --ifi-focus:   color-mix(in srgb, var(--warm-50) 35%, transparent);
  --ifi-margin:  clamp(20px, 2.8vw, 48px);
  --ifi-gutter:  clamp(12px, 1.4vw, 24px);
  --ifi-display: clamp(40px, 4.2vw, 80px);
  --ifi-radius:  20px;
  --ifi-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ifi-serif:   'Instrument Serif', Georgia, serif;
  --ifi-perspective: 1200px;
}

/* ---- Root ---- */
.ifi_section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  box-sizing: border-box;
  background: var(--ifi-bg, var(--warm-950));
  color: var(--ifi-ink, var(--warm-50));
  letter-spacing: -0.02em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--ifi-perspective);
  font-family: var(--ifi-sans);
  -webkit-font-smoothing: antialiased;
}

/* The 3D stage: preserves 3D for all card children, bent toward the cursor by
   JS (rotationX/rotationY via quickTo). Fills the section. */
.ifi_stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Manifesto headline block ----
   Sits outside the rotating stage (own layer) so it stays readable; carries
   only a small counter-tilt set directly by JS. */
.ifi_content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.ifi_headline {
  font-family: var(--ifi-serif, Georgia, serif);
  font-weight: 400;
  font-size: var(--ifi-display, 60px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ifi-ink, var(--warm-50));
  margin: 0;
  overflow-x: visible;
  overflow-y: visible;
}

/* SplitText mask: "lines" wraps each line in its own clip box; the padding
   grows the line box so the mask clips below descenders at tight leading. */
.ifi_headline_line {
  padding-bottom: 0.18em;
}

.ifi_headline_grey {
  color: var(--ifi-grey, var(--color-muted));
}

.ifi_support {
  font-family: var(--ifi-sans, 'Inter', sans-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ifi-muted, var(--color-muted));
  margin: 24px auto 0;
  max-width: 380px;
}

.ifi_support b {
  font-weight: 400;
  color: var(--ifi-ink, var(--warm-50));
}

.ifi_support_line {
  padding-bottom: 0.18em;
}

/* ---- Image cards ----
   Positioned at the stage centre; JS drives x/y/z/opacity per-card via
   quickSetters. transform-origin centre so depth scaling reads naturally
   through the perspective. Native aspect ratio per card - set inline via a
   per-card modifier class matched to its own image's w/h so nothing crops. */
.ifi_card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: var(--ifi-radius, 20px);
  background: var(--ifi-tile, var(--warm-900));
  overflow: hidden;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  opacity: 0;
  backface-visibility: hidden;
}

.ifi_card_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card size registers, matched to each image's native aspect so cover never
   mismatch-crops. Widths scale between mobile and desktop via clamp. */
.ifi_card_portrait_sm {
  width: clamp(121.5px, 10.8vw, 189px);
  aspect-ratio: 3072 / 3840;
}

.ifi_card_portrait_md {
  width: clamp(175.5px, 14.85vw, 256.5px);
  aspect-ratio: 2888 / 3840;
}

.ifi_card_portrait_lg {
  width: clamp(229.5px, 18.9vw, 351px);
  aspect-ratio: 3072 / 3840;
}

.ifi_card_landscape_sm {
  width: clamp(189px, 16.2vw, 283.5px);
  aspect-ratio: 3840 / 2568;
}

.ifi_card_landscape_lg {
  width: clamp(256.5px, 21.6vw, 351px);
  aspect-ratio: 3840 / 2568;
}

.ifi_card_square_sm {
  width: clamp(135px, 12.15vw, 202.5px);
  aspect-ratio: 1 / 1;
}

.ifi_card_square_lg {
  width: clamp(202.5px, 17.55vw, 297px);
  aspect-ratio: 1 / 1;
}

/* ---- Responsive: deliberate mobile field, not a squashed desktop ----
   Fewer cards, smaller scale range, no cursor parallax (handled in JS via
   pointer:coarse guard), headline already scales via clamp. */
@media (max-width: 767px), (pointer: coarse) {
  .ifi_card_hide_mobile {
    display: none;
  }

  .ifi_card_portrait_sm,
  .ifi_card_square_sm {
    width: clamp(84px, 24vw, 120px);
  }

  .ifi_card_portrait_md {
    width: clamp(108px, 28.8vw, 144px);
  }

  .ifi_card_portrait_lg,
  .ifi_card_landscape_lg,
  .ifi_card_square_lg {
    width: clamp(132px, 36vw, 192px);
  }

  .ifi_card_landscape_sm {
    width: clamp(120px, 31.2vw, 168px);
  }

  .ifi_content {
    padding: 0 20px;
  }

  .ifi_support {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ifi_card,
  .ifi_stage,
  .ifi_content {
    will-change: auto;
  }
}

/* Portfolio theme and typography, with the supplied depth-field interaction. */
.ifi_section{--ifi-bg:var(--color-ink);--ifi-tile:var(--color-charcoal);--ifi-ink:var(--color-paper);--ifi-grey:color-mix(in srgb,var(--color-paper) 70%,var(--color-ink));--ifi-muted:var(--ifi-grey);--ifi-serif:var(--font-heading);--ifi-sans:var(--font-body)}
.ifi_content{max-width:560px;width:calc(100% - 40px);padding:0;pointer-events:none}
.about_page .ifi_headline{font:400 clamp(44px,5.4vw,86px)/1.05 var(--font-heading);letter-spacing:-.025em;margin:0;text-wrap:balance}
.ifi_contact{pointer-events:auto;height:60px;padding:0 30px;font-size:17px;background:var(--color-paper);color:var(--color-ink);margin-top:32px}
.ifi_contact:hover{background:var(--color-muted)}
.ifi_card_landscape_lg,.ifi_card_landscape_sm{aspect-ratio:3/2}
.ifi_card_portrait_lg,.ifi_card_portrait_md,.ifi_card_portrait_sm{aspect-ratio:2/3}
.ifi_card_square_lg,.ifi_card_square_sm{aspect-ratio:1}
.ifi_card_img{object-position:center 42%}
@media(max-width:767px){.ifi_content{width:calc(100% - 40px);max-width:330px}.about_page .ifi_headline{font-size:clamp(40px,10vw,56px)}}

/* Fade the photograph field into the theme surface at both vertical edges. */
.ifi_stage{z-index:0}
.ifi_section::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,var(--ifi-bg) 0%,transparent 15%,transparent 85%,var(--ifi-bg) 100%)}
