/* Micelio — Marystela De Gumucio portfolio
   Palette: red #D23E2B · mint #83CAB2 · amber #EDA802/#F4B83D · ink #231A15 · cream #FFFDF7 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/caveat.woff2') format('woff2');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FFFDF7;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #231A15;
}

a { color: #D23E2B; text-decoration: none; }
a:hover { color: #9C2A1C; }

h1, h2, h3, p { margin: 0; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes steam {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  25% { opacity: .7; }
  100% { transform: translateY(-16px) scaleX(1.6); opacity: 0; }
}

/* Mycelium canvas sits behind everything */
#myco {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; overflow-x: clip; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 10px;
  padding: 12px clamp(16px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid #231A15;
}

.nav-brand { display: flex; align-items: center; gap: 11px; color: #231A15; }
.nav-brand img { height: 52px; width: auto; display: block; }
.nav-brand span { font-weight: 700; font-size: 16px; letter-spacing: .02em; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.pill {
  color: #231A15;
  padding: 8px 16px;
  border: 1.5px solid #231A15;
  border-radius: 999px;
}
.pill-mint { background: #83CAB2; }
.pill-amber { background: #F4B83D; }
.pill-red { background: #D23E2B; color: #fff; }
.pill:hover { color: inherit; }
.pill-red:hover { color: #fff; }

.lang-switch {
  display: flex;
  border: 1.5px solid #231A15;
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
}
.lang-switch button {
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 13px;
  background: transparent;
  color: #231A15;
}
.lang-switch button.active { background: #231A15; color: #FFFDF7; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px clamp(16px, 4vw, 40px) 48px;
  text-align: center;
  position: relative;
}

.hero-tagline {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: #D23E2B;
  transform: rotate(-2deg);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(64px, 10vw, 110px);
  line-height: .95;
  margin: 6px 0 0;
  color: #231A15;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero h1 span { color: #D23E2B; }

.hero-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.chip {
  display: inline-block;
  border: 1.5px solid #231A15;
  padding: 10px 19px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: #231A15;
}
.chip-mint  { background: #83CAB2; animation: wiggle 3s ease-in-out infinite; }
.chip-amber { background: #F4B83D; animation: wiggle 3.6s .3s ease-in-out infinite; }
.chip-red   { background: #D23E2B; color: #fff; animation: wiggle 3.2s .6s ease-in-out infinite; }
.chip-white { background: #fff; animation: wiggle 3.8s .9s ease-in-out infinite; }

.hero-photo {
  position: relative;
  width: min(420px, 88vw);
  margin: 42px auto 0;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px 18px 18px;
  border: 2px solid #231A15;
  display: block;
}

.hero-note {
  position: absolute;
  top: 40px;
  left: -118px;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: #231A15;
  transform: rotate(-8deg);
  width: 130px;
  text-align: right;
}
.hero-kpi {
  position: absolute;
  bottom: 64px;
  right: -128px;
  background: #fff;
  border: 1.5px solid #231A15;
  border-radius: 12px;
  padding: 10px 15px;
  transform: rotate(5deg);
  box-shadow: 4px 4px 0 #231A15;
  font-size: 13px;
  font-weight: 600;
  color: #231A15;
}

/* On small screens the annotations drop below the photo */
@media (max-width: 720px) {
  .hero-note {
    position: static;
    display: inline-block;
    margin: 14px 10px 0 0;
    font-size: 22px;
    transform: rotate(-4deg);
    width: auto;
    text-align: left;
    vertical-align: middle;
  }
  .hero-kpi {
    position: static;
    display: inline-block;
    margin: 14px 0 0;
    padding: 8px 13px;
    transform: rotate(3deg);
    font-size: 12.5px;
    vertical-align: middle;
  }
}

/* ---------- Ticker ---------- */
.ticker { background: #231A15; overflow: hidden; padding: 12px 0; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  color: #FFFDF7;
  white-space: nowrap;
  text-transform: uppercase;
}
.ticker-track span { padding-right: 24px; }
.ticker-track span::after { content: '\00a0'; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px;
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 60px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #D23E2B;
  margin-bottom: 12px;
}

.about h2 {
  font-size: clamp(30px, 5.5vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.about p {
  font-size: 16px;
  line-height: 1.65;
  color: #4b4038;
  margin: 0 0 14px;
}
.about p:last-child { margin-bottom: 0; }

.about-photo {
  position: relative;
  transform: rotate(2deg);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 180px 180px 16px 16px;
  border: 2px solid #231A15;
  display: block;
}
.about-tag {
  position: absolute;
  bottom: -14px;
  left: -14px;
  background: #83CAB2;
  border: 1.5px solid #231A15;
  color: #231A15;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  transform: rotate(-4deg);
}

/* ---------- Platforms ---------- */
.platforms {
  border-top: 1.5px solid #231A15;
  border-bottom: 1.5px solid #231A15;
  background: rgba(255, 253, 247, .6);
}
.platforms-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 70px) clamp(20px, 5vw, 60px);
}
.platforms h2 {
  font-size: clamp(30px, 5.5vw, 40px);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sub {
  font-family: 'Caveat', cursive;
  font-size: 25px;
  color: #D23E2B;
  margin: 0 0 30px;
}
.platforms .sub { margin-bottom: 30px; }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.platform-card {
  background: #fff;
  border: 1.5px solid #231A15;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.platform-name { font-weight: 700; font-size: 21px; }
.platform-desc { font-size: 13px; color: #4b4038; }

.shadow-red   { box-shadow: 4px 4px 0 #D23E2B; }
.shadow-mint  { box-shadow: 4px 4px 0 #83CAB2; }
.shadow-amber { box-shadow: 4px 4px 0 #F4B83D; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  border-bottom: 1.5px solid #231A15;
}
.service {
  padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 52px);
}
.service h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.service p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.service-1 { background: #83CAB2; border-right: 1.5px solid #231A15; }
.service-1 p { color: #1d3d33; }
.service-2 { background: #F4B83D; }
.service-2 p { color: #4a3405; }
.service-3 { background: #D23E2B; border-right: 1.5px solid #231A15; border-top: 1.5px solid #231A15; }
.service-3 h3 { color: #fff; }
.service-3 p { color: #ffd9c4; }
.service-4 { background: #FFFDF7; border-top: 1.5px solid #231A15; position: relative; }
.service-4 p { color: #4b4038; }

.coffee {
  position: absolute;
  bottom: 26px;
  right: 30px;
  width: 40px;
  height: 30px;
}
.coffee-cup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 22px;
  background: #231A15;
  border-radius: 0 0 14px 14px;
}
.coffee-handle {
  position: absolute;
  bottom: 5px;
  left: 28px;
  width: 10px;
  height: 11px;
  border: 3px solid #231A15;
  border-left: none;
  border-radius: 0 9px 9px 0;
}
.coffee-steam {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 10px;
  background: #D23E2B;
  border-radius: 2px;
  animation: steam 2.2s ease-out infinite;
}
.steam-1 { left: 7px; }
.steam-2 { left: 16px; animation-delay: .7s; }

/* ---------- Work gallery ---------- */
.work {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 60px) 60px;
}
.work h2 {
  font-size: clamp(30px, 5.5vw, 40px);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.work .sub { margin-bottom: 34px; }

.work-columns { columns: 300px 3; column-gap: 22px; }

.work-img,
.work-card img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.work-card {
  break-inside: avoid;
  margin-bottom: 22px;
  background: #fff;
  border: 1.5px solid #231A15;
  border-radius: 14px;
  padding: 12px;
}
.work-card.shadow-red   { box-shadow: 5px 5px 0 #D23E2B; }
.work-card.shadow-mint  { box-shadow: 5px 5px 0 #83CAB2; }
.work-card.shadow-amber { box-shadow: 5px 5px 0 #F4B83D; }

.tilt-1 { transform: rotate(1deg); }
.tilt-2 { transform: rotate(-.8deg); }
.tilt-3 { transform: rotate(-1.1deg); }
.tilt-4 { transform: rotate(1deg); }
.tilt-5 { transform: rotate(.8deg); }
.tilt-6 { transform: rotate(-.9deg); }

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding: 0 2px;
}
.work-meta .handle { font-weight: 700; font-size: 14px; }
.work-meta .niche { font-size: 12px; color: #4b4038; }

/* ---------- Affiliate highlight ---------- */
.affiliate {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(56px, 8vw, 90px);
}
.affiliate-banner {
  background: #231A15;
  border-radius: 22px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  box-shadow: 8px 8px 0 #EDA802;
  position: relative;
  overflow: hidden;
}
.affiliate-stat {
  text-align: center;
  flex: 0 1 220px;
  min-width: 170px;
  margin: 0 auto;
}
.affiliate-number {
  font-weight: 700;
  font-size: clamp(64px, 10vw, 96px);
  line-height: 1;
  color: #F4B83D;
}
.affiliate-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #83CAB2;
  text-transform: uppercase;
  margin-top: 6px;
}
.affiliate-text { flex: 1 1 320px; }
.affiliate-kicker {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: #EDA802;
  margin-bottom: 10px;
}
.affiliate-text p {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: #FFFDF7;
  margin: 0;
  font-weight: 500;
}

/* ---------- Journey ---------- */
.journey {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(56px, 8vw, 90px);
}
.journey h2 {
  font-size: clamp(30px, 5.5vw, 40px);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.journey .sub { margin-bottom: 30px; }

.journey-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
}
.journey-card {
  flex: 1 1 260px;
  border-radius: 14px;
  padding: 26px;
}
.journey-num {
  font-family: 'Caveat', cursive;
  font-size: 23px;
  color: #D23E2B;
  margin-bottom: 8px;
}
.journey-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #231A15;
  font-weight: 500;
}
.j-1 {
  background: #fff;
  border: 1.5px solid #231A15;
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 #83CAB2;
}
.j-2 {
  background: #fff;
  border: 1.5px solid #231A15;
  transform: rotate(1.4deg);
  box-shadow: 5px 5px 0 #F4B83D;
  margin-top: 22px;
}
.j-3 {
  background: #231A15;
  transform: rotate(-1deg);
  box-shadow: 5px 5px 0 #D23E2B;
  margin-top: 8px;
  color: #FFFDF7;
}
.j-3 .journey-num { color: #F4B83D; }
.j-3 .journey-text { color: #FFFDF7; }

/* ---------- Drive link ---------- */
.drive {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(56px, 8vw, 90px);
  text-align: center;
}
.drive-card {
  display: inline-block;
  background: #fff;
  border: 1.5px solid #231A15;
  border-radius: 16px;
  padding: 24px clamp(20px, 4vw, 40px);
  box-shadow: 6px 6px 0 #EDA802;
  transform: rotate(-.6deg);
}
.drive-card p {
  font-size: 19px;
  font-weight: 500;
  color: #231A15;
  margin: 0;
}
.drive-card a {
  font-weight: 700;
  color: #D23E2B;
  border-bottom: 2.5px solid #D23E2B;
  padding-bottom: 1px;
}

/* ---------- Footer ---------- */
.footer {
  background: #D23E2B;
  border-top: 1.5px solid #231A15;
  padding: 70px 40px 46px;
  text-align: center;
}
.footer-tag {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  color: #F4B83D;
}
.footer-email {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  border-bottom: 3px solid #F4B83D;
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.footer-email:hover { color: #fff; }
.footer-copy {
  margin-top: 40px;
  font-size: 12.5px;
  color: #ffd9c4;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .chip, .ticker-track, .coffee-steam { animation: none; }
}
