/* ============================================================
   alessa media — SITE STYLES
   Components (Button, Chip, Tag, IconButton, ProjectCard) and
   section layout recreated from the alessa-media design system.
   ============================================================ */

body { background: var(--white); color: var(--ink); font-family: var(--font-body); overflow-x: clip; }

.container    { max-width: var(--container);    margin: 0 auto; padding-inline: 24px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; }

/* ---------------------------------------------------------------
   COMPONENTS
   --------------------------------------------------------------- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  padding: 12px 24px;
  font-size: var(--fs-sm);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn--sm { padding: 8px 16px; font-size: var(--fs-sm); }
.btn--lg { padding: 15px 30px; font-size: var(--fs-body); }
.btn--primary   { background: var(--gradient); color: var(--text-on-accent); box-shadow: var(--shadow-accent); }
.btn--secondary { background: var(--white); color: var(--text-strong); border-color: var(--border-hairline); }
.btn--ghost     { background: transparent; color: var(--text-strong); }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn svg { display: block; }

/* IconButton */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--gradient { background: var(--gradient); color: var(--text-on-accent); box-shadow: var(--shadow-accent); }
.icon-btn--subtle   { background: var(--white); color: var(--text-body); border-color: var(--border-hairline); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { display: block; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid var(--border-hairline);
  background: var(--white);
  color: var(--text-strong);
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.chip.is-active { background: var(--gradient); color: var(--text-on-accent); border-color: transparent; }

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: var(--bg-surface);
  color: var(--text-body);
}
.tag--outline {
  background: var(--white);
  color: var(--text-strong);
  border: 1px solid var(--border-hairline);
  font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------
   NAV
   --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: var(--container-lg); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
}
.nav__brand {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: 19px; letter-spacing: -0.03em; color: var(--ink);
}
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { height: 38px; }
@media (max-width: 640px) { .nav__links { display: none; } }

/* ---------------------------------------------------------------
   HERO
   --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 28px 72px; text-align: center;
}
.hero__glow {
  position: absolute; top: -20%; right: -8%;
  width: 640px; height: 640px;
  background: var(--gradient); filter: blur(130px); opacity: 0.20;
  pointer-events: none; animation: amGlowB 16s var(--ease-in-out) infinite;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero__title {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: clamp(2.75rem, 1rem + 6vw, 4.75rem);
  line-height: 0.98; letter-spacing: -0.035em; margin: 20px 0 0; color: var(--ink);
}
.hero__sub {
  max-width: 440px; margin: 24px auto 0;
  font-size: 18px; line-height: 1.6; color: var(--muted);
}
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__stats {
  display: flex; justify-content: center; gap: 44px; margin-top: 44px; flex-wrap: wrap;
}
.hero__stat-num {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: 34px; letter-spacing: -0.02em; color: var(--ink);
}
.hero__stat-label {
  margin-top: 2px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint);
}

/* Shimmer headline word */
.shimmer {
  background: linear-gradient(110deg, var(--violet), var(--pink) 40%, var(--amber) 70%, var(--violet));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: amShimmer 7s linear infinite;
}

/* Client marquee */
.marquee {
  position: relative; z-index: 1; max-width: var(--container-lg);
  margin: 56px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; gap: 48px; width: max-content; animation: amMarquee 26s linear infinite; }
.marquee__row span { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; color: var(--faint); white-space: nowrap; }
.marquee__row .dot { color: var(--line); font-weight: 400; }

/* ---------------------------------------------------------------
   SECTION SCAFFOLD
   --------------------------------------------------------------- */
.section { position: relative; overflow: hidden; }
.section__head { text-align: center; }
.section__title {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 2.75rem);
  letter-spacing: -0.025em; line-height: 1.08; margin: 12px 0 0; color: var(--ink);
}
.glow-spot { position: absolute; background: var(--gradient); pointer-events: none; }

/* ---------------------------------------------------------------
   WORK
   --------------------------------------------------------------- */
.work { padding: 92px 0 100px; background: var(--white); }
.work__glow { top: 0; left: 50%; transform: translateX(-50%); width: 820px; height: 360px; filter: blur(150px); opacity: 0.12; }
.work__head { position: relative; z-index: 1; }
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 36px; }

.track-wrap {
  position: relative; z-index: 1; max-width: var(--container-lg); margin: 44px auto 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.track {
  display: flex; gap: 28px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 48px calc(50% - 160px) 56px;
  scrollbar-width: none; perspective: 1600px;
}
.track::-webkit-scrollbar { display: none; }
.am-card {
  flex: 0 0 auto; width: 320px; scroll-snap-align: center;
  transform-style: preserve-3d; backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}
.work__arrows { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }

/* ProjectCard */
.project-card { cursor: pointer; width: 100%; }
.pc-visual {
  position: relative; height: 260px; width: 100%;
  overflow: hidden; border-radius: var(--radius-2xl);
  background: var(--gradient); background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover .pc-visual { transform: translateY(-4px); }
.pc-play-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pc-play {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-pill);
  background: var(--gradient); color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
  animation: amPlayBreathe 2.6s var(--ease-in-out) infinite;
}
.pc-play::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.7);
  animation: amPlayRing 2.6s var(--ease-out) infinite; pointer-events: none;
}
.pc-plate {
  position: absolute; inset-inline: 0; bottom: 0; padding: 20px; color: #fff;
  background: linear-gradient(to top, rgba(21,16,58,0.55), transparent);
}
.pc-plate__client { margin: 0; font-size: var(--fs-xs); opacity: 0.85; }
.pc-plate__title { margin: 2px 0 0; font-size: var(--fs-body); font-weight: var(--fw-extra); line-height: var(--lh-snug); color: #fff; }
.pc-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Audio waveform visual */
.pc-waveform { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.waveform { display: flex; align-items: flex-end; gap: 3px; height: 40px; width: 100%; }
.waveform span {
  flex: 1; border-radius: 2px;
  background: var(--gradient); background-size: 1800% 100%;
  transform-origin: bottom;
  animation: amWf 1.1s ease-in-out infinite alternate;
}

/* ---------------------------------------------------------------
   SKILLS
   --------------------------------------------------------------- */
.skills { padding: 88px 24px 96px; background: var(--surface); }
.skills__glow { bottom: -30%; right: -6%; width: 560px; height: 560px; filter: blur(150px); opacity: 0.10; }
.skills__inner { position: relative; z-index: 1; max-width: var(--container-lg); margin: 0 auto; }
.skills__head { text-align: center; max-width: 640px; margin: 0 auto; }
.skills__lead { margin: 16px auto 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.skills__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 48px;
}
.skill-card {
  height: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-2xl); padding: 28px 26px; box-sizing: border-box;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.skill-card__badge {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--gradient); color: #fff; box-shadow: var(--shadow-accent);
}
.skill-card__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 0; color: var(--ink); }
.skill-card__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.skill-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------------------------------------------------------------
   ABOUT
   --------------------------------------------------------------- */
.about { padding: 92px 24px 96px; }
.about__inner { max-width: var(--container-lg); margin: 0 auto; display: flex; gap: 64px; align-items: center; }
.about__portrait { flex: 0 0 38%; min-width: 0; }
.about__frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-2xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
  background-image: url('assets/alessa-portrait.jpg');
  background-size: cover; background-position: center 28%; background-repeat: no-repeat;
}
.about__caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 24px 22px;
  text-align: center; color: #fff;
  background: linear-gradient(to top, rgba(21,16,58,0.62), rgba(21,16,58,0.1) 58%, transparent);
}
.about__caption-name { margin: 0; font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 21px; letter-spacing: -0.02em; }
.about__caption-role { margin: 3px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.9; }
.about__copy { flex: 1; min-width: 0; }
.about__title {
  font-family: var(--font-display); font-weight: var(--fw-extra);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
  letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 0; color: var(--ink);
}
.about__text { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 20px 0 0; max-width: 580px; }
.about__tools-label { margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--faint); }
.about__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 820px) {
  .about__inner { flex-direction: column; gap: 36px; }
  .about__portrait { width: 100%; }
  .about__frame { max-width: 320px; margin: 0 auto; }
}

/* ---------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------- */
.contact { background: var(--gradient); color: #fff; text-align: center; padding: 92px 24px 40px; }
.contact__inner { max-width: 680px; margin: 0 auto; }
.contact__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: clamp(2rem, 1.4rem + 3vw, 3rem); letter-spacing: -0.02em; margin: 0; color: #fff; }
.contact__sub { margin-top: 14px; font-size: 17px; opacity: 0.92; }
.contact__mail-wrap { display: flex; justify-content: center; margin-top: 28px; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); font-weight: var(--fw-bold); font-size: 15px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(21,16,58,0.18);
  transition: transform var(--dur-base) var(--ease-out);
}
.contact__mail:hover { transform: translateY(-3px); }
.contact__socials { display: flex; justify-content: center; gap: 14px; margin-top: 32px; }
.contact__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15); color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.contact__socials a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.contact__footer { margin-top: 56px; font-size: 12px; color: rgba(255,255,255,0.78); }
.contact__footer a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------
   MODAL
   --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; animation: amFadeIn 0.25s ease; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(21,16,58,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; width: 100%; max-width: 540px; background: #fff;
  border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: var(--shadow-xl); animation: amPopIn 0.3s var(--ease-out);
}
.modal__bar { height: 8px; background: var(--gradient); }
.modal__close { position: absolute; top: 20px; right: 16px; }
.modal__body { padding: 32px 36px 36px; }
.modal__client { margin: 0; font-size: var(--fs-eyebrow); font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--faint); padding-right: 40px; }
.modal__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 28px; letter-spacing: -0.02em; line-height: 1.12; margin: 8px 0 0; padding-right: 24px; color: var(--ink); }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal__desc { margin-top: 20px; line-height: 1.65; color: var(--muted); }
.modal__cta { margin-top: 24px; }
.modal__cta:empty { display: none; }

/* ---------------------------------------------------------------
   SCROLL REVEAL
   --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.40s; }

/* ---------------------------------------------------------------
   KEYFRAMES
   --------------------------------------------------------------- */
@keyframes amGlowB {
  0%   { transform: translate(0, 0) scale(1);     opacity: 0.20; }
  50%  { transform: translate(5%, -6%) scale(1.15); opacity: 0.30; }
  100% { transform: translate(0, 0) scale(1);     opacity: 0.20; }
}
@keyframes amShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes amMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes amFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes amPopIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes amPlayBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes amPlayRing {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes amWf { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero__glow, .shimmer, .marquee__row, .pc-play, .pc-play::after, .waveform span { animation: none !important; }
  [data-reveal] { transition: none; }
}

/* ---------------------------------------------------------------
   FULL-SCREEN SECTIONS + SCROLL SNAP (desktop only)
   Each section is one full screen and stops in place when scrolling.
   --------------------------------------------------------------- */
@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--nav-h);
  }
  .hero, .work, .skills, .about, .contact {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - var(--nav-h));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Flex-column centering makes margin:auto children shrink to content —
     force the content wrappers back to full width so they keep their max-width span. */
  .hero  > :not([aria-hidden="true"]),
  .work  > :not([aria-hidden="true"]),
  .skills > :not([aria-hidden="true"]),
  .about > div,
  .contact > div { width: 100%; }
  /* Trim stacked vertical padding so each section's content fits one screen */
  .work, .skills, .about { padding-top: 52px; padding-bottom: 52px; }
  .hero    { padding-top: 40px; padding-bottom: 40px; }
  .contact { position: relative; padding-top: 64px; padding-bottom: 40px; }
  /* Pin the contact footer to the bottom while its content stays centered */
  .contact__footer { position: absolute; left: 0; right: 0; bottom: 18px; margin-top: 0; }
}
