@charset "utf-8";

/* ==========================================================================
   Inês Ribeiro — Marketing & Social Media Portfolio
   Typography, palette and imagery taken from the original Canva design.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face{font-family:"IR Serif";src:url("../fonts/serif-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IR Serif";src:url("../fonts/serif-400i.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"IR Serif";src:url("../fonts/serif-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"IR Serif";src:url("../fonts/serif-700i.woff2") format("woff2");font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"IR Display";src:url("../fonts/display-700.woff2") format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"IR Label";src:url("../fonts/label-400.woff2") format("woff2");font-weight:100 500;font-style:normal;font-display:swap}
@font-face{font-family:"IR Label";src:url("../fonts/label-700.woff2") format("woff2");font-weight:600 900;font-style:normal;font-display:swap}
@font-face{font-family:"IR Script";src:url("../fonts/script-400.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  --cream:#F5F5DC;
  --white:#FFFFFF;
  --red:#BD0000;
  --red-deep:#AA1313;
  --slate:#45535E;
  --slate-dark:#304254;
  --ink:#000000;
  --ink-soft:#2A2A22;
  --purple:#7D2AE7;

  /* browser chrome, sampled from the original artwork */
  --win-tabbar:#EBDED1;
  --win-toolbar:#F6F1EC;
  --win-url:#FDFBF8;
  --win-content:#F5EDE5;
  --win-line:#DDD1C4;
  --tab-idle:#E3D5C6;
  --tab-live:#F8F3ED;
  --dot-a:#DCAFA6;
  --dot-b:#EBD9BE;
  --dot-c:#AABB9E;

  --serif:"IR Serif",Georgia,"Times New Roman",serif;
  --display:"IR Display","IR Serif",Georgia,serif;
  --label:"IR Label","IR Serif",Georgia,serif;
  --script:"IR Script","IR Serif",Georgia,serif;

  --chrome-h:98px;
  --gutter:clamp(1.25rem,4vw,4rem);
  --measure:62ch;
  --ease:cubic-bezier(.22,.72,.31,1);
  --radius:14px;
}

/* ---------- Reset-ish ---------- */
*,*::before,*::after{box-sizing:border-box}
/* Deliberately no `overflow-x` on <html> or <body>.
   `hidden` there turns the element into a scroll container (breaking sticky
   positioning), and `clip` on one axis forces the other axis to clip too,
   which stops the page scrolling at all. Horizontal overflow is prevented at
   the source instead — see `.scene` and `.tablewrap`. */
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--chrome-h) + 1rem);
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(1rem,.94rem + .3vw,1.15rem);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,video,svg{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,p,figure,ul,ol{margin:0}
ul{padding:0;list-style:none}

:focus-visible{outline:3px solid var(--red);outline-offset:3px;border-radius:4px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--red);color:#fff;padding:.75rem 1.25rem;font-weight:700;
}
.skip:focus{left:.5rem;top:.5rem}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- Shared type ---------- */
.display{
  font-family:var(--serif);
  font-weight:700;
  color:var(--red);
  letter-spacing:-.021em;
  line-height:1.06;
  text-wrap:balance;
}
.h-xl{font-size:clamp(2.6rem,1.1rem + 7.4vw,6.7rem)}
.h-lg{font-size:clamp(2.1rem,1rem + 5.4vw,4.6rem)}
.h-md{font-size:clamp(1.65rem,1rem + 3.1vw,3rem)}

.lede{max-width:var(--measure);font-size:clamp(1.02rem,.95rem + .42vw,1.32rem);line-height:1.62}

.wrap{width:min(1180px,100% - var(--gutter)*2);margin-inline:auto}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  min-height:100svh;
  display:grid;
  align-content:center;
  padding:clamp(4rem,10vh,8rem) 0 clamp(3rem,8vh,6rem);
  background:var(--cream);
}
.hero__name{
  font-family:var(--serif);
  font-weight:700;
  color:var(--red);
  letter-spacing:-.021em;
  line-height:.92;
  font-size:clamp(3rem,.2rem + 13.5vw,12.5rem);
  margin-bottom:.12em;
}
.hero__meta{
  display:flex;flex-wrap:wrap;gap:.6rem 2rem;
  justify-content:space-between;align-items:baseline;
  font-family:var(--display);
  font-weight:700;
  color:var(--red);
  font-size:clamp(.82rem,.62rem + .95vw,1.65rem);
  letter-spacing:.01em;
}
.hero__scroll{
  margin-top:clamp(2.5rem,7vh,5rem);
  display:inline-flex;align-items:center;gap:.7rem;
  font-family:var(--display);font-size:.82rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--slate);text-decoration:none;
  justify-self:start;
}
.hero__scroll span{display:block;width:1.6rem;height:1px;background:currentColor;transition:width .3s var(--ease)}
.hero__scroll:hover span{width:2.6rem}

/* ==========================================================================
   The browser window — chrome is sticky, panes scroll beneath it
   ========================================================================== */
.browser{
  position:relative;
  background:var(--win-content);
  border-top:1px solid var(--win-line);
  border-bottom:1px solid var(--win-line);
}

.chrome{
  position:sticky;top:0;z-index:60;
  background:var(--win-tabbar);
  border-bottom:1px solid var(--win-line);
  box-shadow:0 1px 0 rgba(0,0,0,.03),0 10px 24px -22px rgba(60,40,20,.6);
}
.chrome__bar{
  display:flex;align-items:flex-end;gap:.65rem;
  padding:.5rem clamp(.6rem,2vw,1.1rem) 0;
}
.dots{display:flex;gap:.42rem;padding-bottom:.6rem;flex:none}
.dots i{width:.72rem;height:.72rem;border-radius:50%;display:block}
.dots i:nth-child(1){background:var(--dot-a)}
.dots i:nth-child(2){background:var(--dot-b)}
.dots i:nth-child(3){background:var(--dot-c)}

.tabs{
  display:flex;gap:.28rem;flex:1 1 auto;min-width:0;
  overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-ms-overflow-style:none;
  scroll-snap-type:x proximity;
}
.tabs::-webkit-scrollbar{display:none}
.tab{
  flex:0 0 auto;scroll-snap-align:center;
  display:flex;align-items:center;gap:.5rem;
  padding:.5rem clamp(.6rem,1.4vw,1.05rem);
  background:var(--tab-idle);
  border:1px solid var(--win-line);
  border-bottom:0;
  border-radius:9px 9px 0 0;
  font-family:var(--serif);font-weight:700;
  font-size:clamp(.78rem,.72rem + .18vw,.94rem);
  color:var(--ink);text-decoration:none;
  white-space:nowrap;
  transition:background .22s var(--ease),color .22s var(--ease),transform .22s var(--ease);
}
.tab:hover{background:#EFE3D6}
.tab__x{opacity:.42;font-size:.9em;line-height:1}
.tab[aria-current="true"]{
  background:var(--tab-live);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1.5px;
}
.chrome__url{
  display:flex;align-items:center;gap:.7rem;
  background:var(--win-toolbar);
  padding:.45rem clamp(.6rem,2vw,1.1rem);
  border-top:1px solid var(--win-line);
}
.chrome__nav{display:flex;gap:.55rem;color:var(--slate);flex:none}
.chrome__nav button{
  width:1.6rem;height:1.6rem;display:grid;place-items:center;border-radius:50%;
  opacity:.55;transition:opacity .2s,background .2s;
}
.chrome__nav button:hover{opacity:1;background:rgba(0,0,0,.05)}
.chrome__nav svg{width:1rem;height:1rem;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.urlpill{
  flex:1 1 auto;min-width:0;
  background:var(--win-url);
  border:1px solid var(--win-line);
  border-radius:999px;
  padding:.3rem 1rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.76rem;color:var(--slate);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.urlpill b{font-weight:600;color:var(--ink-soft)}

/* panes */
.pane{
  padding:clamp(3.5rem,9vh,7rem) 0 clamp(3.5rem,9vh,7rem);
  scroll-margin-top:var(--chrome-h);
}
.pane + .pane{border-top:1px solid rgba(221,209,196,.75)}
.pane__head{margin-bottom:clamp(1.75rem,4vw,3rem)}

/* ==========================================================================
   About
   ========================================================================== */
.about{
  display:grid;gap:clamp(1.75rem,4vw,3.5rem);
  grid-template-columns:minmax(0,1fr);
  align-items:start;
}
@media (min-width:820px){
  .about{grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:clamp(2.5rem,5vw,5rem)}
}
.about__photo{
  border:2px solid var(--red);
  border-radius:26px;
  overflow:hidden;
  background:var(--white);
  max-width:420px;
  aspect-ratio:4/5;
}
.about__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.about__body p{margin-top:1rem}

/* ==========================================================================
   "What's in my bag" scene
   ========================================================================== */
.bag{margin-top:clamp(2.5rem,6vh,4.5rem)}
.bag__title{text-align:center;margin-bottom:clamp(1.5rem,4vw,2.5rem)}

.scene{
  position:relative;
  aspect-ratio:16/9;
  max-width:1060px;margin-inline:auto;
}
.bag__open{
  position:absolute;left:50%;top:46%;translate:-50% -50%;
  width:33%;
  padding:0;border:0;background:none;cursor:pointer;
  z-index:2;
}
.bag__open img{width:100%;transition:transform .3s var(--ease)}
.bag__open:hover img,.bag__open:focus-visible img{transform:scale(1.03)}
.bag__hint{
  position:absolute;left:50%;bottom:-2.2rem;translate:-50% 0;
  white-space:nowrap;
  font-family:var(--display);font-size:.68rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--slate);
  opacity:.85;transition:opacity .3s var(--ease);
}
.scene.go .bag__hint{opacity:.45}
.bag__open:hover .bag__hint,.bag__open:focus-visible .bag__hint{opacity:1;color:var(--red)}
.scene__label{
  position:absolute;left:50%;bottom:4%;translate:-50% 0;
  width:26%;
}
.bag__items{display:contents}
.item{position:absolute;width:12%;text-align:center}
.item img{width:100%;filter:drop-shadow(0 10px 18px rgba(90,60,30,.16))}
.item figcaption{
  font-family:var(--serif);font-weight:700;
  color:var(--red-deep);
  font-size:clamp(.6rem,.42rem + .62vw,1.05rem);
  line-height:1.2;margin-bottom:.35rem;
}
.item--passport{left:3%;top:8%;width:11%}
.item--perfume{left:19%;top:12%;width:9.5%}
.item--camera{left:14%;top:56%;width:13%}
.item--notebook{right:19%;top:8%;width:10.5%}
.item--highlighter{right:1%;top:38%;width:14%}
.item--glasses{right:16%;top:56%;width:13%}

/* Items spill out of the bag. --dx/--dy are measured in JS as the vector from
   each item to the bag's centre, so the burst stays correct at any width. */
@media (prefers-reduced-motion:no-preference){
  .scene.burst .item{
    opacity:0;
    transform:translate(var(--dx,0px),var(--dy,0px)) scale(.28) rotate(var(--dr,0deg));
  }
  .scene.burst .item figcaption{opacity:0}
  .scene.burst.go .item{
    opacity:1;transform:none;
    transition:transform .95s cubic-bezier(.18,.84,.3,1) var(--d,0s),
               opacity .5s ease var(--d,0s);
  }
  .scene.burst.go .item figcaption{
    opacity:1;transition:opacity .45s ease calc(var(--d,0s) + .5s);
  }
}

@media (max-width:719px){
  .scene{aspect-ratio:auto;display:grid;gap:1.5rem 1rem;grid-template-columns:1fr 1fr}
  .scene__hero{position:static;translate:none;width:auto;grid-column:1/-1;max-width:280px;margin-inline:auto}
  .scene__label{position:static;translate:none;width:auto;grid-column:1/-1;max-width:230px;margin:-.5rem auto .5rem}
  .item{position:static;width:auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
  .item img{max-width:110px;margin-inline:auto}
  .item figcaption{order:2;margin:.6rem 0 0;font-size:.9rem}
}

/* ==========================================================================
   Case-study folders
   ========================================================================== */
.folders{
  display:grid;gap:clamp(1.25rem,3vw,2.5rem);
  grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));
  max-width:900px;margin-inline:auto;
}
.folder{
  position:relative;display:block;
  text-decoration:none;text-align:center;
  padding:0;border:0;background:none;
  transition:transform .3s var(--ease);
}
.folder__art{position:relative;display:block}
.folder__art img{width:100%}
.folder__name{
  position:absolute;inset:0;
  display:grid;place-content:center;
  padding:12% 10% 0;
  font-family:var(--label);font-weight:700;
  color:var(--red);
  font-size:clamp(1rem,.8rem + .8vw,1.5rem);
  line-height:1.1;
  text-decoration:underline;text-underline-offset:3px;
}
.folder__meta{
  margin-top:.85rem;font-size:.86rem;color:var(--slate);
  font-family:var(--serif);
}
.folder:hover,.folder:focus-visible{transform:translateY(-8px) rotate(-1.2deg)}
.folder .cursor{
  position:absolute;right:6%;bottom:-14%;width:1.15rem;
  transition:transform .3s var(--ease);pointer-events:none;
}
.folder:hover .cursor{transform:translate(-6px,-8px)}

.label-img{max-width:min(560px,88%);margin:0 auto clamp(1.5rem,4vw,2.75rem)}

/* ==========================================================================
   Content lab
   ========================================================================== */
.lab{
  display:grid;gap:clamp(1.75rem,4vw,3.5rem);
  grid-template-columns:minmax(0,1fr);
  align-items:center;
}
@media (min-width:860px){.lab{grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr)}}
.lab__profile{max-width:340px;margin-bottom:1.5rem}
.lab__posts{display:grid;gap:clamp(1rem,2.5vw,1.75rem);grid-template-columns:1fr 1fr}
.post{
  position:relative;display:block;text-decoration:none;
  border-radius:8px;overflow:hidden;
  box-shadow:0 12px 30px -18px rgba(60,40,20,.75);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.post img{width:100%}
.post:hover,.post:focus-visible{transform:translateY(-6px);box-shadow:0 20px 40px -18px rgba(60,40,20,.8)}
.post__tag{
  position:absolute;left:0;right:0;bottom:0;
  padding:2.5rem .8rem .7rem;
  background:linear-gradient(to top,rgba(0,0,0,.72),transparent);
  color:#fff;font-size:.78rem;font-family:var(--serif);font-weight:700;
  opacity:0;transition:opacity .3s var(--ease);
}
.post:hover .post__tag,.post:focus-visible .post__tag{opacity:1}

/* ==========================================================================
   Cross-cultural
   ========================================================================== */
.travels{max-width:820px}
.travels__quote{
  margin-top:clamp(1.75rem,4vw,2.75rem);
  font-family:var(--serif);font-weight:700;
  color:var(--red);
  font-size:clamp(1.2rem,.85rem + 1.7vw,2.1rem);
  line-height:1.22;letter-spacing:-.012em;
  text-wrap:balance;
}
/* the plane flies in from the left and comes to rest in the empty column to
   the right of the copy */
.plane-strip{
  margin-top:clamp(1.5rem,4vw,2.5rem);
  display:flex;
  overflow:hidden;
  padding:.5rem 0;
}
@media (min-width:1000px){
  #cross-cultural .wrap{position:relative}
  .plane-strip{
    position:absolute;left:0;right:0;top:34%;
    margin:0;padding:0;
    pointer-events:none;
  }
}
/* the artwork is drawn nose-left, so it is mirrored to fly left → right and
   comes to rest in the empty space on the right of the section */
.plane{
  width:clamp(78px,12vw,150px);
  margin-left:auto;
  transform:scaleX(-1);
}
@media (prefers-reduced-motion:no-preference){
  .plane{transform:translateX(-92vw) scaleX(-1)}
  .plane-strip.in .plane{animation:fly 2.4s cubic-bezier(.3,.05,.2,1) .2s forwards}
}
@keyframes fly{
  0%  {transform:translateX(-92vw) translateY(0)     rotate(4deg)   scaleX(-1)}
  55% {transform:translateX(-38vw) translateY(-11px) rotate(-2.5deg) scaleX(-1)}
  100%{transform:translateX(0)     translateY(0)     rotate(0deg)   scaleX(-1)}
}

/* ==========================================================================
   Skills — the plate
   ========================================================================== */
/* One plate. The place setting already contains it — nothing is layered on top. */
.plate{
  position:relative;max-width:860px;margin-inline:auto;
  aspect-ratio:1400/1050;
}
.plate__setting{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* scattered inside the plate rather than set out on a grid — all six centres
   sit well within a 50%-radius circle so nothing spills over the rim */
.tools{
  position:absolute;left:50%;top:50%;translate:-50% -50%;
  width:34%;aspect-ratio:1;
}
.tools li{
  position:absolute;
  left:var(--x);top:var(--y);
  translate:-50% -50%;
  display:grid;place-items:center;
  width:var(--w,28%);
  height:clamp(1.6rem,2.6vw,2.6rem);
}
.tools img,.tools svg{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  filter:drop-shadow(0 3px 5px rgba(60,40,20,.22));
}
.tools li:nth-child(1){--x:20%;--y:34%;--w:34%;--tilt:-6deg}   /* Notion  */
.tools li:nth-child(2){--x:53%;--y:14%;--w:22%;--tilt:5deg}    /* GA4     */
.tools li:nth-child(3){--x:82%;--y:32%;--w:16%;--tilt:-3deg}   /* ChatGPT */
.tools li:nth-child(4){--x:18%;--y:72%;--w:18%;--tilt:7deg}    /* Canva   */
.tools li:nth-child(5){--x:52%;--y:53%;--w:32%;--tilt:-4deg}   /* Claude  */
.tools li:nth-child(6){--x:76%;--y:74%;--w:30%;--tilt:6deg}    /* HubSpot */

/* each one bobs and tilts on its own rhythm, like things settling on a plate */
@media (prefers-reduced-motion:no-preference){
  .tools li{
    animation:sway 3.4s ease-in-out infinite;
    transform-origin:50% 70%;
    will-change:transform;
  }
  .tools li:nth-child(1){animation-duration:3.1s;animation-delay:-.30s}
  .tools li:nth-child(2){animation-duration:3.8s;animation-delay:-1.40s}
  .tools li:nth-child(3){animation-duration:2.9s;animation-delay:-2.10s}
  .tools li:nth-child(4){animation-duration:3.5s;animation-delay:-.90s}
  .tools li:nth-child(5){animation-duration:3.2s;animation-delay:-2.60s}
  .tools li:nth-child(6){animation-duration:4.0s;animation-delay:-1.75s}
}
@keyframes sway{
  0%,100%{transform:rotate(calc(var(--tilt,0deg) - 7deg)) translateY(-5px)}
  50%    {transform:rotate(calc(var(--tilt,0deg) + 7deg)) translateY(5px)}
}
@media (prefers-reduced-motion:reduce){
  .tools li{transform:rotate(var(--tilt,0deg))}
}

@media (max-width:719px){
  /* The plate keeps its shape on a phone.
     This used to hand the section back to normal flow — but the items stayed
     absolutely positioned, so they anchored to the whole plate box instead of
     the small centred circle and scattered off the rim. They stay on the dish
     now; the circle just opens up so six logos are still readable at 375px.
     37% keeps every logo clear of the rim through the whole sway cycle. The
     dish sits right of the artwork's centre, so the safe radius is the shortest
     one from the middle: 24.6% of the width, 32.8% of the height. */
  .tools{width:37%}
  .tools li{height:clamp(1.5rem,7.5vw,2.3rem)}
}

/* ==========================================================================
   Contact cards (matchboxes)
   ========================================================================== */
.cards{
  display:grid;gap:clamp(1.25rem,3vw,2.5rem);
  grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));
  max-width:820px;margin-inline:auto;
}
.card{
  position:relative;display:block;text-decoration:none;text-align:center;
  max-width:260px;margin-inline:auto;
  transition:transform .35s var(--ease);
}
/* A matchbox: coloured sleeve, matchsticks poking out of the top, and a card
   tucked inside it. */
/* the matchsticks sit squarely on the sleeve — same width, same axis */
.card__box{
  display:block;width:100%;margin:0 0 -6%;
  position:relative;z-index:2;
  filter:drop-shadow(0 3px 5px rgba(60,40,20,.32));
}
.card__body{
  position:relative;z-index:1;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:.7rem;
  aspect-ratio:9/13;
  padding:9% 8%;
  border-radius:9px;
  background:var(--box,#B02A2A);
  box-shadow:0 16px 34px -22px rgba(60,40,20,.8);
}
/* the card face inside the sleeve */
.card__body::before{
  content:"";position:absolute;inset:9% 8%;
  border-radius:5px;
  background:var(--face,#FCFAF6);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);
}
.card__art{
  position:relative;z-index:1;
  max-height:58%;width:auto;max-width:78%;object-fit:contain;flex:0 1 auto;
}
/* the Ace of hearts is a card face in its own right */
.card--cover .card__body::before{
  background:#FCFAF6 url("../img/card-ace.webp") center/cover no-repeat;
}
.card__label{
  position:relative;z-index:1;
  font-family:var(--script);
  font-size:clamp(.82rem,.72rem + .45vw,1.05rem);
  letter-spacing:.1em;
  text-decoration:underline;text-underline-offset:3px;
  line-height:1.4;flex:none;
  color:var(--card-ink,var(--red));
}
.card__label--split{
  display:flex;flex-direction:column;align-items:center;gap:.35rem;
  text-decoration:none;
}
.card__label--split > span:not(.card__heart){
  text-decoration:underline;text-underline-offset:3px;
}
.card__heart{
  font-size:2.4em;line-height:.9;color:var(--card-ink,var(--red));
  text-decoration:none;
}
.card--cover   {--box:#A32526;--face:#FCFAF6;--card-ink:var(--red)}
.card--resume  {--box:#77848A;--face:#FFFFFF;--card-ink:var(--purple)}
.card--linkedin{--box:#EFE7C8;--face:#FBF7E4;--card-ink:var(--purple)}
/* hovering rattles the box, like shaking a matchbox to hear what's inside */
@media (prefers-reduced-motion:no-preference){
  .card:hover,.card:focus-visible{animation:rattle .55s cubic-bezier(.36,.07,.19,.97) both}
  .card:hover .card__box,.card:focus-visible .card__box{animation:rattle-sticks .55s cubic-bezier(.36,.07,.19,.97) both}
}
@media (prefers-reduced-motion:reduce){
  .card:hover,.card:focus-visible{transform:translateY(-8px)}
}
@keyframes rattle{
  0%  {transform:translateY(0)    rotate(0)}
  12% {transform:translateY(-7px) rotate(-2.6deg)}
  28% {transform:translateY(-9px) rotate(2.2deg)}
  44% {transform:translateY(-8px) rotate(-1.6deg)}
  60% {transform:translateY(-9px) rotate(1.1deg)}
  76% {transform:translateY(-8px) rotate(-.5deg)}
  100%{transform:translateY(-9px) rotate(0)}
}
/* the sticks lag a little, so they read as loose inside the sleeve */
@keyframes rattle-sticks{
  0%  {transform:translate(0,0)      rotate(0)}
  14% {transform:translate(2px,-2px) rotate(2.2deg)}
  32% {transform:translate(-2px,-3px) rotate(-1.8deg)}
  50% {transform:translate(2px,-2px) rotate(1.4deg)}
  70% {transform:translate(-1px,-3px) rotate(-.8deg)}
  100%{transform:translate(0,-2px)   rotate(0)}
}

/* ==========================================================================
   Closing / contact
   ========================================================================== */
.outro{
  background:var(--cream);
  padding:clamp(4rem,10vh,8rem) 0 clamp(3rem,7vh,5rem);
}
.outro__grid{
  display:grid;gap:clamp(2rem,5vw,4rem);
  grid-template-columns:minmax(0,1fr);
  align-items:center;
}
@media (min-width:880px){.outro__grid{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr)}}

.player{
  position:relative;
  border-radius:22px;overflow:hidden;
  border:2px solid var(--red);
  background:#000;
  max-width:380px;
  aspect-ratio:9/16;
  margin-inline:auto;
}
.player video{width:100%;height:100%;object-fit:cover;display:block}
.player__btn{
  position:absolute;inset:0;
  display:grid;place-items:center end;
  grid-template-rows:1fr auto;
  padding:0 0 12% 0;
  justify-items:center;
  background:linear-gradient(to top,rgba(20,10,10,.34),rgba(20,10,10,.06) 45%);
  transition:background .25s var(--ease),opacity .25s var(--ease);
}
.player__btn:hover{background:rgba(20,10,10,.06)}
.player__btn i{
  width:4.6rem;height:4.6rem;border-radius:50%;
  background:rgba(255,255,255,.94);
  display:grid;place-items:center;
  box-shadow:0 10px 30px -8px rgba(0,0,0,.5);
  transition:transform .25s var(--ease);
}
.player__btn:hover i{transform:scale(1.07)}
.player__btn i::after{
  content:"";width:0;height:0;margin-left:.35rem;
  border-left:1.35rem solid var(--red);
  border-top:.85rem solid transparent;
  border-bottom:.85rem solid transparent;
}
.player.is-playing .player__btn{opacity:0;pointer-events:none}

.contact-list{margin-top:clamp(1.75rem,4vw,2.5rem);display:grid;gap:.55rem}
.contact-row{
  display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;
  font-size:clamp(.98rem,.92rem + .3vw,1.14rem);
}
.contact-row a{
  color:var(--ink);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:rgba(189,0,0,.4);
  transition:text-decoration-color .2s,color .2s;
}
.contact-row a:hover{color:var(--red);text-decoration-color:var(--red)}
.contact-row .k{
  font-family:var(--display);font-size:.72rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--slate);min-width:5.5rem;
}
.copy{
  font-family:var(--display);font-size:.68rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--slate);
  border:1px solid rgba(69,83,94,.35);border-radius:999px;
  padding:.2rem .6rem;transition:background .2s,color .2s,border-color .2s;
}
.copy:hover{background:var(--red);color:#fff;border-color:var(--red)}
.copy[data-done="1"]{background:var(--slate);color:#fff;border-color:var(--slate)}

.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  background:var(--red);color:#fff;text-decoration:none;
  padding:.72rem 1.4rem;border-radius:999px;
  font-family:var(--display);font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;
  transition:background .2s var(--ease),transform .2s var(--ease);
}
.btn:hover{background:#9c0000;transform:translateY(-2px)}
.btn--ghost{background:none;color:var(--red);border:1.5px solid currentColor}
.btn--ghost:hover{background:var(--red);color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}

.foot{
  border-top:1px solid rgba(69,83,94,.18);
  margin-top:clamp(3rem,8vh,5rem);padding-top:1.5rem;
  display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between;
  font-size:.82rem;color:var(--slate);
}
.foot a{color:inherit}

/* ==========================================================================
   Motion — opt-in, never blocking first paint
   ========================================================================== */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
  .reveal.in{opacity:1;transform:none}
  .reveal[data-d="1"]{transition-delay:.07s}
  .reveal[data-d="2"]{transition-delay:.14s}
  .reveal[data-d="3"]{transition-delay:.21s}
  .reveal[data-d="4"]{transition-delay:.28s}
  .reveal[data-d="5"]{transition-delay:.35s}
  .reveal[data-d="6"]{transition-delay:.42s}

}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print{
  .chrome,.hero__scroll,.player__btn,.skip{display:none!important}
  body{background:#fff}
  .pane{padding:1rem 0;break-inside:avoid}
}
