/* ==========================================================================
   Portfolio DS v2 — Minimal + bright + pixel-art whimsy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Neutrals — warm sand / cocoa */
  --bg:        #FFFEFA;
  --surface:   #FFFFFF;
  --line:      #F0E8D8;
  --line-2:    #E5DBC6;
  --ink-1:     #7A6F5E;
  --ink-2:     #2E2920;
  --ink:       #1A1410;

  /* Accents — summer day in Rio (Tijuca forest, Ipanema aqua, ipê amarelo, bouganvillea, summer sky) */
  --ipanema:        #20C0D8;
  --ipanema-strong: #1A7383;  /* deep teal — AA on white, paper, and ipanema-50 */
  --tijuca:      #1F8F5A;
  --tijuca-strong: #16734A;  /* deep forest — AA on white, paper, and tijuca-50 */
  --ipe:        #F2C13A;
  --ipe-strong:  #806932;     /* deep amber — AA on white, paper, and ipe-50 */
  --bougainvillea:        #EC6B92;
  --bougainvillea-strong: #A4466C; /* deep berry — AA on white, paper, and bougainvillea-50 */
  --sky:        #2E7FC2;
  --sky-strong:  #386697;     /* deep harbor — AA on white, paper, and sky-50 */

  /* Tints */
  --ipanema-50:     #CFEFF5;
  --tijuca-50:   #D0E8DA;
  --ipe-50:     #FBEDC2;
  --bougainvillea-50:     #FBDDE6;
  --sky-50:     #D2E3F3;

  /* Type */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale — body/secondary sizes used across pages */
  --fs-body:  16px;
  --fs-small: 14px;

  /* Motion */
  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-back: cubic-bezier(.2,1.6,.4,1);
  --t-fast:    160ms;
  --t-med:     320ms;

  /* Layout */
  --col:       1100px;
  --r-sm:      6px;
  --r-md:      10px;
  --r-lg:      18px;
  --r-pill:    999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.5;
}

/* All inline SVG sprites get crisp pixel edges */
svg.px { shape-rendering: crispEdges; image-rendering: pixelated; display: block; }

/* ==========================================================================
   Cursor companion — caju trail
   ========================================================================== */
.px-pal {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 48px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 300ms var(--ease);
  will-change: transform;
}
.px-pal.is-on { opacity: 1; }

/* ==========================================================================
   Layout
   ========================================================================== */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--col);
  margin: 0 auto;
  padding: 32px 32px 120px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--t-med) var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
  z-index: -1;
  pointer-events: none;
}
.nav.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav.is-scrolled::before { border-bottom-color: var(--line-2); }
.nav .brand {
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease);
}
.nav.is-scrolled .brand { transform: scale(0.94); }
.shell > .nav + * { margin-top: 32px; }
@media (max-width: 720px) {
  .nav { padding: 16px 0; }
  .nav.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
}
.brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Pixel dot — 4×4 block walking through accent colors */
.px-dot {
  width: 12px; height: 12px;
  display: inline-block;
  background: var(--ipanema);
  animation: px-dot-walk 4.4s steps(1) infinite;
}
@keyframes px-dot-walk {
  0%, 25%      { background: var(--ipanema); }
  25.01%, 50%  { background: var(--tijuca); }
  50.01%, 75%  { background: var(--ipe); }
  75.01%, 100% { background: var(--bougainvillea); }
}

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; padding: 0; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background-image: linear-gradient(to right, var(--bougainvillea-strong) 50%, transparent 50%);
  background-size: 4px 2px;
  background-repeat: repeat-x;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover { color: var(--bougainvillea-strong); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--bougainvillea-strong); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-burger {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: var(--ink);
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  width: 36px;
  border-radius: 4px;
}
.nav-burger:hover { color: var(--bougainvillea-strong); }
.nav-burger:focus-visible { outline: 2px solid var(--bougainvillea-strong); outline-offset: 2px; }
.nav-burger-bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  transform-origin: center;
}
.nav.is-open .nav-burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-burger-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Type
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin: 0 0 16px;
}

.h-hero {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 14ch;
}
.h-page    { font-size: 40px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; }
.h-section { font-size: 24px; line-height: 1.2;  letter-spacing: -0.015em; font-weight: 600; margin: 0 0 12px; }
.h-sub     { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 8px; }

.lede   { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.body   { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.body   p { margin: 0 0 16px; }
.body   p:last-child { margin-bottom: 0; }
.small  { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-1); }
.mono   { font-family: var(--font-mono); font-size: 12px; color: var(--ink-1); }

/* Hero — sparkle decoration anchored to last word */
.hero-anchor { position: relative; display: inline-block; }
.hero-anchor .px-sparkle {
  position: absolute;
  width: 14px; height: 14px;
}
.hero-anchor .px-sparkle.s1 { top: -8px;  right: -22px; animation-delay: 0s; }
.hero-anchor .px-sparkle.s2 { top: 14px;  right: -34px; animation-delay: 800ms; }
.hero-anchor .px-sparkle.s3 { bottom: -6px; left: -18px; animation-delay: 400ms; }

/* Inline highlight */
.hl       { background-image: linear-gradient(transparent 60%, var(--ipanema-50) 60%); padding: 0 2px; }
.hl.tijuca  { background-image: linear-gradient(transparent 60%, var(--tijuca-50) 60%); }
.hl.ipe  { background-image: linear-gradient(transparent 60%, var(--ipe-50) 60%); }
.hl.bougainvillea  { background-image: linear-gradient(transparent 60%, var(--bougainvillea-50) 60%); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; padding-top: 16px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-1);
}

/* ==========================================================================
   Color tokens
   ========================================================================== */
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sw {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--surface);
  transition: transform var(--t-med) var(--ease-back), box-shadow var(--t-med) var(--ease);
}
.sw:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17,17,17,.06);
}
.sw .chip {
  height: 84px;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.sw .name { font-size: 13px; font-weight: 600; }
.sw .hex  { font-family: var(--font-mono); font-size: 11px; color: var(--ink-1); margin-top: 2px; }

.sw.ipanema .chip { background: var(--ipanema); }
.sw.tijuca   .chip { background: var(--tijuca); }
.sw.ipe   .chip { background: var(--ipe); }
.sw.bougainvillea   .chip { background: var(--bougainvillea); }
.sw.sky   .chip { background: var(--sky); }

.sw.ipanema-strong       .chip { background: var(--ipanema-strong); }
.sw.tijuca-strong        .chip { background: var(--tijuca-strong); }
.sw.ipe-strong           .chip { background: var(--ipe-strong); }
.sw.bougainvillea-strong .chip { background: var(--bougainvillea-strong); }
.sw.sky-strong           .chip { background: var(--sky-strong); }

.sw.ipanema-50      .chip { background: var(--ipanema-50); }
.sw.tijuca-50       .chip { background: var(--tijuca-50); }
.sw.ipe-50          .chip { background: var(--ipe-50); }
.sw.bougainvillea-50 .chip { background: var(--bougainvillea-50); }
.sw.sky-50          .chip { background: var(--sky-50); }

.neutrals {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.neu {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--surface);
}
.neu .chip { height: 48px; border-radius: 4px; margin-bottom: 8px; }
.neu .name { font-size: 12px; font-weight: 600; }
.neu .hex  { font-family: var(--font-mono); font-size: 10px; color: var(--ink-1); }

/* ==========================================================================
   Type ramp
   ========================================================================== */
.ramp { display: grid; grid-template-columns: 200px 1fr; gap: 24px; row-gap: 32px; align-items: start; }
.ramp .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-1); }
.ramp .sample { margin: 0; }

/* ==========================================================================
   Buttons — three styles: Primary (filled), Secondary (outline), Ghost (invisible)
   States covered: default, hover, focus-visible, active (pressed), disabled
   ========================================================================== */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  --btn-bg:        var(--tijuca-strong);
  --btn-fg:        #fff;
  --btn-bd:        var(--tijuca-strong);
  --btn-bg-hover:  #0E5230;
  --btn-bd-hover:  #0E5230;
  --btn-fg-hover:  #fff;
  --btn-ring:      var(--tijuca);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform 120ms var(--ease-back),
    box-shadow var(--t-fast) var(--ease);
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bd-hover);
  color: var(--btn-fg-hover);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--btn-shadow, var(--ipe));
}
.btn:focus-visible {
  outline: 2px solid var(--btn-ring);
  outline-offset: 3px;
}
.btn:active {
  transform: translateY(1px) scale(.98);
  box-shadow: inset 0 2px 0 rgba(0,0,0,.12);
}
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary — outline, ink-on-cream until hover */
.btn.secondary {
  --btn-bg:        transparent;
  --btn-fg:        var(--ink);
  --btn-bd:        var(--ink);
  --btn-bg-hover:  var(--ink);
  --btn-bd-hover:  var(--ink);
  --btn-fg-hover:  #fff;
  --btn-ring:      var(--ink);
  --btn-shadow:    var(--ipe);
}

/* Ghost — invisible chrome; warm tint on hover */
.btn.ghost {
  --btn-bg:        transparent;
  --btn-fg:        var(--ink);
  --btn-bd:        transparent;
  --btn-bg-hover:  var(--line);
  --btn-bd-hover:  transparent;
  --btn-fg-hover:  var(--ink);
  --btn-ring:      var(--ink);
  --btn-shadow:    transparent;
}

.btn .arrow { display: inline-block; transition: transform var(--t-med) var(--ease-back); }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Links — pixel underline (square dots) on hover
   ========================================================================== */
.link {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  background-image: linear-gradient(to right, var(--ink) 50%, transparent 50%);
  background-size: 4px 2px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  transition: background-size var(--t-med) var(--ease);
}
.link:hover {
  background-size: 4px 3px;
  color: var(--bougainvillea-strong);
  background-image: linear-gradient(to right, var(--bougainvillea-strong) 50%, transparent 50%);
}
.link.tijuca { background-image: linear-gradient(to right, var(--tijuca-strong) 50%, transparent 50%); }
.link.ipanema   { background-image: linear-gradient(to right, var(--ipanema-strong)   50%, transparent 50%); }
.link.ipe   { background-image: linear-gradient(to right, var(--ipe-strong)   50%, transparent 50%); }
.link.bougainvillea   { background-image: linear-gradient(to right, var(--bougainvillea-strong)   50%, transparent 50%); }
.link.sky   { background-image: linear-gradient(to right, var(--sky-strong)   50%, transparent 50%); }

/* ==========================================================================
   Tags
   ========================================================================== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: var(--line);
  color: #6B6050; /* warm taupe — 5.05:1 on --line, AA */
  transition: background-color var(--t-fast);
}
.tag.ipanema       { background: var(--ipanema-50);       color: var(--ipanema-strong); }
.tag.tijuca        { background: var(--tijuca-50);        color: var(--tijuca-strong); }
.tag.ipe           { background: var(--ipe-50);           color: var(--ipe-strong); }
.tag.bougainvillea { background: var(--bougainvillea-50); color: var(--bougainvillea-strong); }
.tag.sky           { background: var(--sky-50);           color: var(--sky-strong); }

/* ==========================================================================
   Cards — with walking pixel sprite on hover
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 780px;
}
.cards--2up { grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) {
  .cards--2up { grid-template-columns: 1fr; gap: 48px; }
}
.card {
  text-decoration: none;
  position: relative;
  border: 2px solid var(--tijuca);
  border-radius: 12px;
  padding: 24px 28px 28px;
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-back), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--tijuca);
  border-color: var(--tijuca);
}
.card, .card *, .card:hover, .card:hover * { text-decoration: none !important; background-image: none !important; }
.card .meta { margin-bottom: 6px; }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 6px; color: var(--ink); }
.card h3 .chev { vertical-align: -2px; margin-left: 4px; transition: transform var(--t-med) var(--ease-back); }
.card:hover h3 .chev { transform: translateX(4px); }
.card p  { font-size: 14px; color: var(--ink-1); margin: 0 0 16px; }
.card .card-metrics { display: flex; flex-wrap: wrap; gap: 8px; }

/* Optional product image area, sits above the title inside card padding */
.card .card-thumb {
  display: block;
  margin: 0 0 20px;
  background: var(--tijuca-50);
  padding: 28px 60px 0;
  max-height: 340px;
  overflow: hidden;
  text-align: center;
  border-radius: var(--r-md);
}
.card .card-thumb img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto -48px;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   Whimsy showcase — pixel art demos
   ========================================================================== */
.whim {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.whim-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--surface);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.whim-card .label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-1); }
.whim-card .demo  { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 12px 0; }
.whim-card h4     { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.whim-card p      { font-size: 13px; color: var(--ink-1); margin: 0; }

/* 404 beija-flor + bougainvillea — static composition */
.nf-demo {
  position: relative;
  display: inline-block;
  width: 130px;
  height: 130px;
}
.nf-demo .nf-bird {
  position: absolute;
  left: 22px;
  top: 0;
  width: 110px;
  height: 120px;
  display: block;
}
.nf-demo .nf-flower {
  position: absolute;
  left: -2px;
  top: 48px;
  width: 36px;
  height: 36px;
  display: block;
}

/* ==========================================================================
   Pixel sprites — sizing
   ========================================================================== */
.px-sparkle  { width: 24px; height: 24px; animation: spark-twinkle 1.2s steps(3) infinite; }
.px-heart    { width: 28px; height: 28px; }
.px-pal-demo { width: 64px; height: 64px; }

/* Sparkle twinkle */
@keyframes spark-twinkle {
  0%   { transform: scale(0.4); opacity: 0.4; }
  33%  { transform: scale(0.8); opacity: 0.85; }
  66%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.4); opacity: 0.4; }
}

/* Beating-heart loader — 4 hearts with staggered scale */
.px-heart-loader {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.px-heart-loader .px-heart {
  transform-origin: 50% 60%;
  animation: heart-beat 1.2s steps(2, end) infinite;
}
.px-heart-loader .px-heart:nth-child(1) { animation-delay: 0ms; }
.px-heart-loader .px-heart:nth-child(2) { animation-delay: 150ms; }
.px-heart-loader .px-heart:nth-child(3) { animation-delay: 300ms; }
.px-heart-loader .px-heart:nth-child(4) { animation-delay: 450ms; }
@keyframes heart-beat {
  0%, 49.9% { transform: scale(0.7); }
  50%, 100% { transform: scale(1); }
}

/* Pixel sun — chunky stepped rotation on hover/focus */
.px-sun-spin { transition: transform 200ms var(--ease-back); width: 64px; height: 64px; }
.px-sun-spin:hover,
.px-sun-spin:focus-visible {
  outline: none;
  animation: sun-spin 800ms steps(8, end) 1;
}
@keyframes sun-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ==========================================================================
   Beija-flor loader (loading state)
   ========================================================================== */
.bf-loader {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 48px;
  animation: bf-bob 1.2s steps(2) infinite;
}
.bf-loader svg { position: absolute; inset: 0; width: 64px; height: 48px; }
.bf-loader .f2 { animation: bf-flap 220ms steps(1) infinite; opacity: 0; }
.bf-loader .f1 { animation: bf-flap-inv 220ms steps(1) infinite; }
@keyframes bf-flap { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes bf-flap-inv { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes bf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* ==========================================================================
   Tucano — slim toucan perched on branch; back wing fans open on hover/focus
   ========================================================================== */
.tc-loader {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 90px;
  cursor: pointer;
  outline: none;
}
.tc-loader:focus-visible { outline: 2px solid var(--bougainvillea); outline-offset: 4px; border-radius: var(--r-sm); }
.tc-loader .tc-wings {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 78px;
  display: block;
  color: inherit;
  opacity: 0;
  transform: scale(.4);
  transform-origin: 18px 36px;
  transition: transform 320ms var(--ease-back), opacity 220ms var(--ease);
  pointer-events: none;
}
.tc-loader:hover .tc-wings,
.tc-loader:focus .tc-wings,
.tc-loader:focus-within .tc-wings {
  opacity: 1;
  transform: scale(1);
}
.tc-loader .tc-bird {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 78px;
  display: block;
}
.tc-loader .tc-branch {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 12px;
  display: block;
}

/* ==========================================================================
   Tropical fruit cycle (brand dot)
   ========================================================================== */
.fr-cycle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 64px;
}
.fr-cycle svg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 56px;
  opacity: 0;
  animation: fr-cycle 12.6s steps(1) infinite;
}
.fr-cycle svg:nth-child(1) { animation-delay: 0s; }
.fr-cycle svg:nth-child(2) { animation-delay: 1.8s; }
.fr-cycle svg:nth-child(3) { animation-delay: 3.6s; }
.fr-cycle svg:nth-child(4) { animation-delay: 5.4s; }
.fr-cycle svg:nth-child(5) { animation-delay: 7.2s; }
.fr-cycle svg:nth-child(6) { animation-delay: 9s; }
.fr-cycle svg:nth-child(7) { animation-delay: 10.8s; }
@keyframes fr-cycle {
  0%, 14.28%   { opacity: 1; }
  14.29%, 100% { opacity: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  margin-top: 80px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-1);
}
.foot .signoff { display: inline; white-space: nowrap; }
.foot .px-heart-foot {
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
  position: relative;
  top: -1px;
  color: var(--bougainvillea);
  animation: heart-color-cycle 8s steps(1) infinite;
}
.foot .px-heart-foot svg { display: block; }
.foot-social-icon {
  display: none;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.foot-socials a:hover,
.foot-socials a:focus-visible { color: var(--bougainvillea-strong); }
@media (max-width: 720px) {
  .foot { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .foot-socials a.link { background-image: none; padding-bottom: 0; }
  .foot-socials a:hover,
  .foot-socials a:focus-visible { color: var(--bougainvillea); }
  .foot-socials .foot-social-label { display: none; }
  .foot-socials .foot-social-icon { display: inline-block; }
}
@keyframes heart-color-cycle {
  0%,  19.99% { color: var(--bougainvillea); }
  20%, 39.99% { color: var(--ipanema); }
  40%, 59.99% { color: var(--ipe); }
  60%, 79.99% { color: var(--tijuca); }
  80%, 100%   { color: var(--sky); }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .px-pal { display: none; }
  .bf-loader, .fr-cycle svg { animation: none !important; }
  .tc-loader .tc-wings { transition: none !important; }
  .fr-cycle svg:first-child { opacity: 1; }
  .foot .px-heart-foot { animation: none !important; color: var(--bougainvillea); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .neutrals { grid-template-columns: repeat(3, 1fr); }
  .cards    { grid-template-columns: 1fr; }
  .whim     { grid-template-columns: 1fr; }
  .ramp     { grid-template-columns: 1fr; }
  .ramp .label { padding-top: 0; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    padding: 8px 32px 16px;
    z-index: 49;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav.is-open .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-1);
  }
  .nav.is-open .nav-links a:last-child { border-bottom: 0; }
  .nav.is-open .nav-links a::after { display: none; }
}
@media (max-width: 720px) {
  .nav-links { padding-left: 20px; padding-right: 20px; }
}
