/* Image to Bouquet — landing. One fixed stage and a line of stops, the way IRIS is built.
   Every length is a design pixel (--px) of the 1440 × 900 Figma frame, which is always fitted whole into the window.
   Type: Geist only — Black for headlines, Bold for captions, SemiBold for labels, Regular for the interface. */
@font-face{font-family:"Geist";font-weight:400;font-style:normal;font-display:block;src:url("fonts/Geist-Regular.woff2") format("woff2")}
@font-face{font-family:"Geist";font-weight:600;font-style:normal;font-display:block;src:url("fonts/Geist-SemiBold.woff2") format("woff2")}
@font-face{font-family:"Geist";font-weight:700;font-style:normal;font-display:block;src:url("fonts/Geist-Bold.woff2") format("woff2")}
@font-face{font-family:"Geist";font-weight:900;font-style:normal;font-display:block;src:url("fonts/Geist-Black.woff2") format("woff2")}
:root{
  --px: clamp(.5px, min(calc(100vw / 1440), calc(100vh / 900)), 2px);
  --dark: #000;
  --light: #dfe6f0;
  --ink-light: #f0f6ff;     /* the light ground as it is seen (grain included) plus 33 on every channel: in difference it reads as a neutral #212121 on the ground — not brown, not dead black — and still turns the flower inside the letters */
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --small: max(10px, calc(12 * var(--px)));
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--dark);-webkit-text-size-adjust:100%}
body{font-family:var(--sans);font-weight:400;color:#fff;background:var(--dark);overflow-x:hidden;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.is-loading{overflow:hidden;height:100vh}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
.track{height:1300vh;pointer-events:none}

.stage{position:fixed;inset:0;overflow:hidden}
.stage > *{position:absolute}
.layer{inset:0;width:100%;height:100%;display:block}
#flower{will-change:transform}

/* ---------- the ground ---------- */
.bg{inset:0;background:var(--dark)}
.bg > *{position:absolute;inset:0}
.bg__light{background:var(--light);clip-path:circle(0 at 50% 44%)}      /* the light opens from the heart of the flower */
.bg__noise{background-repeat:repeat;pointer-events:none}

/* every stop-bound element is driven by --a (presence 0…1) and --d (signed distance from its stop) */
[data-stop]{--a:0;--d:0;opacity:var(--a);visibility:hidden;will-change:opacity,transform}
[data-stop].on{visibility:visible}

/* ---------- headlines: Geist Black, white, Figma's layer blur 3 (a CSS blur of 1.5), difference ---------- */
.h{left:50%;width:calc(1440 * var(--px));margin-left:calc(-720 * var(--px));font-weight:900;text-transform:uppercase;text-align:center;line-height:.9;white-space:nowrap;pointer-events:none;
  color:#fff;mix-blend-mode:difference;filter:blur(calc(1.5 * var(--px)));font-size:calc(104 * var(--px));letter-spacing:calc(-5.2 * var(--px));
  transform:translate3d(0, calc(var(--d) * calc(-48 * var(--px))), 0) scale(calc(1 + var(--d) * var(--d) * .04))}
.h--xl{font-size:calc(180 * var(--px));letter-spacing:calc(-9 * var(--px));top:calc(50% - calc(162 * var(--px)));color:var(--ink-light)}   /* the two headlines that stand on the light ground */
.h--photo{top:calc(50% - calc(103 * var(--px)))}
.h--step{top:calc(50% - calc(47 * var(--px)))}
.h--top{top:calc(50% - calc(330 * var(--px)))}

/* ---------- captions ---------- */
.sub{left:50%;top:calc(50% + calc(117 * var(--px)));text-align:center;white-space:nowrap;font-weight:700;font-size:calc(14 * var(--px));line-height:calc(17 * var(--px));color:rgba(255,255,255,.5);
  transform:translate3d(-50%, calc(var(--d) * calc(-24 * var(--px))), 0)}
.sub p + p{margin-top:calc(12 * var(--px))}
.cap{left:50%;top:calc(50% + calc(333 * var(--px)));background:#fff;color:#000;padding:calc(8 * var(--px)) calc(16 * var(--px));filter:blur(calc(.25 * var(--px)));
  transform:translate3d(-50%, calc(var(--d) * calc(-16 * var(--px))), 0)}
.cap span{display:block;min-width:calc(246 * var(--px));height:calc(17 * var(--px));font-weight:700;font-size:calc(14 * var(--px));line-height:calc(17 * var(--px));text-align:center;white-space:nowrap}
.lede{left:calc(24 * var(--px));bottom:calc(64 * var(--px));white-space:nowrap;font-weight:700;font-size:calc(14 * var(--px));line-height:calc(17 * var(--px));color:rgba(0,0,0,.5);
  transform:translate3d(0, calc(var(--d) * calc(-16 * var(--px))), 0)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:flex-start;gap:calc(4 * var(--px));height:calc(32 * var(--px));padding:calc(8 * var(--px)) calc(8 * var(--px)) calc(8 * var(--px)) calc(16 * var(--px));background:#000;color:#fff;font-size:var(--small);line-height:calc(16 * var(--px));white-space:nowrap;pointer-events:auto;transition:background .5s,color .5s}
.btn svg{width:calc(16 * var(--px));height:calc(16 * var(--px));flex:none;transition:transform .4s var(--ease)}
.btn:hover svg{transform:translate(calc(2 * var(--px)), calc(-2 * var(--px)))}
.btn--cta{left:50%;top:calc(50% + calc(274 * var(--px)));transform:translate3d(-50%, calc(var(--d) * calc(-24 * var(--px))), 0)}

/* ---------- nav ---------- */
.nav{top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(24 * var(--px));
  opacity:0;transform:translateY(calc(-10 * var(--px)));transition:opacity .9s var(--ease),transform .9s var(--ease)}
.is-revealing .nav,.is-ready .nav{opacity:1;transform:none}
.logo{display:block;width:calc(209 * var(--px));height:calc(32 * var(--px));color:#000;transition:color .5s}
.logo svg{display:block;width:100%;height:100%}
.tabs{display:flex;align-items:center;gap:calc(2 * var(--px))}
.tabs__set{display:flex;height:calc(32 * var(--px));background:#000;color:#fff;transition:background .5s,color .5s}
.tabs__set a{padding:calc(8 * var(--px));font-size:var(--small);line-height:calc(16 * var(--px));white-space:nowrap;transition:opacity .25s}
.tabs__set a:first-child{padding-left:calc(16 * var(--px))}
.tabs__set a:last-child{padding-right:calc(16 * var(--px))}
.tabs__set:hover a{opacity:.5} .tabs__set a:hover{opacity:1}
.is-dark .logo{color:#fff}
.is-dark .tabs__set,.is-dark .nav .btn,.is-dark .next{background:#fff;color:#000}

/* ---------- bottom bar: nothing here may isolate, the captions blend with the page ---------- */
.bar{left:0;right:0;bottom:0;height:calc(32 * var(--px));pointer-events:none}
.bar > *{position:absolute;opacity:0;transition:opacity .9s var(--ease) .2s,background .5s,color .5s}
.is-revealing .bar > *,.is-ready .bar > *{opacity:1}
.next{left:calc(24 * var(--px));bottom:0;width:calc(44 * var(--px));height:calc(32 * var(--px));background:#000;color:#fff;display:grid;place-items:center;pointer-events:auto}
.next svg{width:calc(16 * var(--px));height:calc(16 * var(--px));transition:transform .4s var(--ease)}
.next:hover svg{transform:translateY(calc(2 * var(--px)))}
.is-dark .bar p{color:#fff}
.bar p{top:0;font-weight:700;font-size:var(--small);line-height:1.3;letter-spacing:-.04em;text-transform:uppercase;white-space:nowrap;color:var(--ink-light);mix-blend-mode:difference}
.bar__mid{left:50%;transform:translateX(-50%)}
.bar__end{right:calc(24 * var(--px))}

/* ---------- stop 1: the tiles the flowers land on ---------- */
.tiles{pointer-events:none}
.tile{position:absolute;left:0;top:0;width:calc(168 * var(--px));height:calc(168 * var(--px));border-radius:calc(24 * var(--px));background:rgba(255,255,255,.1);visibility:hidden;will-change:transform,opacity}
.tile span{position:absolute;left:calc(20 * var(--px));top:calc(100% + calc(12 * var(--px)));font-weight:600;font-size:calc(14 * var(--px));line-height:.9;letter-spacing:calc(-.7 * var(--px));text-transform:uppercase;color:rgba(255,255,255,.5);white-space:nowrap}
.tile--add{border:calc(2 * var(--px)) solid rgba(255,255,255,.2);display:grid;place-items:center;color:rgba(255,255,255,.5);pointer-events:auto;transition:border-color .3s,color .3s}
.tile--add:hover{border-color:rgba(255,255,255,.5);color:#fff}
.tile--add svg{width:calc(32 * var(--px));height:calc(32 * var(--px))}
.tile--add span{left:calc(18 * var(--px));top:calc(100% + calc(14 * var(--px)))}

/* ---------- stop 4: the artboard the finished bouquet is exported from ---------- */
.frame3{left:0;top:0;border:calc(2 * var(--px)) solid rgba(255,255,255,.2);background:rgba(255,255,255,.05);visibility:hidden;pointer-events:none}   /* sized by the script: it closes in on the bouquet from the edges of the screen */

/* ---------- stop 5: the tool, filmed. Both it and its headline are placed by the script: the tool rises and pushes the headline out by the top ---------- */
.tool{left:50%;top:50%;width:calc(1226 * var(--px));aspect-ratio:2055/1152;border-radius:calc(22 * var(--px));overflow:hidden;background:#0e0e11;visibility:hidden;pointer-events:none;
  box-shadow:0 calc(60 * var(--px)) calc(120 * var(--px)) calc(-40 * var(--px)) #000;will-change:transform,opacity;backface-visibility:hidden}
.tool.on{pointer-events:auto}
/* the same grain as the ground lies over the film, and a hairline runs all the way round it */
.tool::before,.tool::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.tool::before{z-index:2;background-image:var(--grain);background-size:var(--grain-size, 128px) var(--grain-size, 128px);background-repeat:repeat;opacity:.7}   /* over the hairline too; a little lighter than on the ground, so the interface keeps its whites */
.tool::after{z-index:1;box-shadow:inset 0 0 0 max(1px, calc(1.25 * var(--px))) rgba(255,255,255,.22)}
.tool video{display:block;width:100%;height:100%;object-fit:cover}
.h--tool{top:calc(50% - calc(150 * var(--px)));visibility:hidden;will-change:transform,opacity}

/* ---------- stop 6: where it goes — three cards, fixed where the layout has them; the one under the pointer lifts.
   They arrive and leave as one sheet: the fade is on the group, so no card ever shows through another ---------- */
.made{pointer-events:none}
.card{position:absolute;left:50%;top:50%;width:calc(276 * var(--px));margin:calc(-219.3 * var(--px)) 0 0 calc(-138 * var(--px));
  transform:translate3d(calc(var(--x) * var(--px)), calc((var(--y) + var(--d) * -40) * var(--px)), 0)}
.made.on .card{pointer-events:auto}
.card:hover{z-index:2}
.card__in{display:flex;flex-direction:column;gap:calc(11 * var(--px));padding:calc(12 * var(--px)) calc(12 * var(--px)) calc(24 * var(--px));background:var(--c);transform:rotate(var(--r));
  transition:transform .6s var(--ease),box-shadow .6s var(--ease);box-shadow:0 0 0 0 rgba(0,0,0,0)}
.card:hover .card__in{transform:rotate(calc(var(--r) * .35)) translateY(calc(-16 * var(--px))) scale(1.06);box-shadow:0 calc(36 * var(--px)) calc(60 * var(--px)) calc(-28 * var(--px)) rgba(0,0,0,.85)}
.card img{display:block;width:calc(252 * var(--px));height:calc(336 * var(--px));object-fit:cover}
.card--3 img{object-position:50% 100%}
.card figcaption{display:flex;flex-direction:column;gap:calc(4 * var(--px));text-align:center;text-transform:uppercase}
.card b{font-weight:900;font-size:calc(40 * var(--px));line-height:.9;letter-spacing:calc(-2 * var(--px));color:#fff;mix-blend-mode:difference;filter:blur(calc(.5 * var(--px)))}
.card small{font-weight:700;font-size:var(--small);line-height:1.3;letter-spacing:-.04em;color:rgba(255,255,255,.8);mix-blend-mode:difference}
.card--1{--c:#1b4091;--r:-6deg;--x:-270.8;--y:83.7}
.card--2{--c:#2a5e43;--r:0deg;--x:0;--y:53.3}
.card--3{--c:#80538b;--r:4deg;--x:279;--y:74.6}

/* ---------- preloader ---------- */
.loader{inset:0;pointer-events:none}
.loader > *{position:absolute}
.loader__n{left:0;right:0;top:calc(50% - calc(47 * var(--px)));text-align:center;font-weight:900;font-size:calc(104 * var(--px));line-height:.9;letter-spacing:calc(-5.2 * var(--px));font-variant-numeric:tabular-nums;
  color:#fff;mix-blend-mode:difference;filter:blur(calc(1.5 * var(--px)));
  transition:filter .9s var(--ease),transform .9s var(--ease),opacity .7s var(--ease)}
.loader__c{color:rgba(255,255,255,.5);font-size:var(--small);line-height:1.3;text-transform:uppercase;white-space:nowrap;transition:opacity .5s}
.loader__c--tl{left:calc(24 * var(--px));top:calc(16 * var(--px))} .loader__c--tr{right:calc(24 * var(--px));top:calc(16 * var(--px))}
.loader__c--bl{left:calc(24 * var(--px));bottom:calc(16 * var(--px))} .loader__c--br{right:calc(24 * var(--px));bottom:calc(16 * var(--px))}
.is-revealing .loader__n{filter:blur(calc(30 * var(--px)));transform:scale(1.5);opacity:0}
.is-revealing .loader__c{opacity:0}
.is-booting .loader__n,.is-booting .loader__c{opacity:0}
.is-ready .loader{visibility:hidden}

@media (prefers-reduced-motion: reduce){ .h,.lede{transform:none} .sub,.cap,.btn--cta{transform:translateX(-50%)} .card__in{transition:none} }
