/* ============================================================
   Laura Liss — Portfolio
   Shared design tokens, layout primitives, and components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800&family=Playfair+Display:ital,wght@1,400;1,500;1,600&display=swap');

:root {
  --ink: #18161a;
  --ink-soft: #2c2a30;
  --paper: #faf6ec;
  --cream: #f4efe1;
  --sky-blue: #bde3f6;
  --sky-blue-strong: #9fd6f2;
  --amber: #f0b23e;
  --amber-dark: #cf8e17;
  --dark-band: #201e1e;
  --line: rgba(24, 22, 26, 0.85);

  --radius-pill: 999px;
  --radius-card: 26px;
  --radius-photo: 22px;

  --shadow-card: 0 30px 70px -25px rgba(0, 0, 0, 0.45), 0 8px 24px -12px rgba(0, 0, 0, 0.25);
  --shadow-photo: 0 18px 40px -16px rgba(0, 0, 0, 0.5);

  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
  --font-ui: -apple-system, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-w: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 3.75vw, 54px) 16px 0;
}

/* Projetos / Contato: only the home star, top-right corner */
.nav--corner {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  padding: clamp(16px, 4.9vw, 70px) clamp(16px, 4.6vw, 66px) 0 0;
}

.nav--corner .nav__inner {
  gap: clamp(8px, 1.2vw, 16px);
  justify-content: flex-end;
}

/* Light pills on the dark photo backgrounds; current page is filled white */
.nav--corner .pill {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.nav--corner .pill.is-active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 44px);
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px clamp(18px, 2.4vw, 34px);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: transparent;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -6px rgba(24, 22, 26, 0.35);
}

.pill--icon {
  padding: 8px clamp(18px, 2.2vw, 32px);
  font-size: 1rem;
}

.pill.is-active {
  background: #fff;
  color: var(--ink);
}

.pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Highlighted / accent text
   --------------------------------------------------------- */

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
}

.mark {
  position: relative;
  display: inline-block;
  padding: 0 0.12em;
  background: var(--sky-blue);
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mark--amber {
  background: #f3d79a;
}

/* Text-selection look: thin handles at both ends */
.mark--select::before,
.mark--select::after {
  content: '';
  position: absolute;
  top: -0.15em;
  bottom: -0.15em;
  width: 2px;
  background: var(--amber-dark);
}

.mark--select::before { left: -1px; }
.mark--select::after { right: -1px; }

.home-subtitle .mark--select::before,
.home-subtitle .mark--select::after {
  background: #4a90d9;
}

.cursor-tag {
  display: inline-flex;
  margin-left: -0.12em;
  vertical-align: bottom;
  transform: translateY(0.12em);
}

.cursor-tag img {
  width: clamp(18px, 2.2vw, 30px);
  height: auto;
}

/* ---------------------------------------------------------
   Buttons / links used inside cards
   --------------------------------------------------------- */

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
}

.check-list a {
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.check-list a:hover {
  border-color: currentColor;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

.insta-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--amber-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber-dark);
}

.insta-icon svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------
   Card chrome (iOS "Notes" style)
   --------------------------------------------------------- */

.card {
  background: #fdfbf6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3.4vw, 40px) clamp(22px, 4vw, 46px) clamp(30px, 4vw, 46px);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--amber-dark);
  font-weight: 700;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.card__header .card__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__header svg {
  width: 20px;
  height: 20px;
}

.card__icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  position: relative;
  text-align: center;
  padding: 22px 16px 30px;
  font-size: 0.78rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  opacity: 0.85;
}

/* ---------------------------------------------------------
   Page background photo — covers the full page height,
   nav and footer included, on every page.
   --------------------------------------------------------- */

.page-photo {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.page-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Mouse parallax on every page (js/parallax.js sets --px / --py) */
.page-photo__img {
  --zoom: 1.06;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom));
  transition: transform 0.3s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .page-photo__img {
    transform: scale(var(--zoom));
    transition: none;
  }
}

.page-photo__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ---------------------------------------------------------
   Hero section shell shared by all three pages
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ============================================================
   HOME (INICIO)
   ============================================================ */

.home .hero {
  padding-block: clamp(30px, 6vw, 70px);
}

.home .page-photo__img {
  filter: saturate(1.05);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr minmax(200px, 305px);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
}

.home .container {
  max-width: 1440px;
  padding-inline: clamp(20px, 4.8vw, 69px);
}

.home-photo {
  border-radius: var(--radius-photo);
  overflow: hidden;
}

.home-photo--left {
  justify-self: start;
  max-width: 320px;
  width: 100%;
  aspect-ratio: 324 / 486;
}

.home-photo--left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-collage {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 305px;
  margin-top: -6%;
}

.home-collage > :first-child {
  width: 100%;
}

.home-collage > * {
  min-width: 0;
  flex-shrink: 1;
}

.home-collage > :last-child {
  width: 79%;
  margin-left: -8%;
  margin-top: -3%;
}

.home-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.home-portfolio {
  font-size: clamp(2.4rem, 6.6vw, 6rem);
  line-height: 1.05;
  margin-top: 0.08em;
}

.home-portfolio .accent {
  font-weight: 400;
}

.home-subtitle {
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.9rem);
  line-height: 1.45;
  margin-top: clamp(28px, 5.5vw, 80px);
}

.home-tags {
  font-weight: 500;
  font-size: clamp(0.8rem, 1.15vw, 1.05rem);
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin-top: clamp(18px, 3.3vw, 48px);
}

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-photo--left,
  .home-collage {
    justify-self: center;
  }

  .home-collage {
    flex-direction: row;
    max-width: min(420px, 90vw);
    margin-top: 0;
  }

  .home-collage > :first-child,
  .home-collage > :last-child {
    width: 50%;
    margin: 30px 0 0;
  }

  .home-collage > :first-child {
    margin-top: 0;
  }
}

/* ============================================================
   MEUS PROJETOS
   ============================================================ */

.projetos .page-photo__scrim {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.72) 0%, rgba(10, 10, 12, 0.35) 20%, rgba(10, 10, 12, 0.15) 38%, rgba(10, 10, 12, 0.5) 70%, rgba(10, 10, 12, 0.8) 100%);
}

.projetos .hero {
  align-items: flex-start;
  min-height: 0;
}

.projetos-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1024;
}

.projetos-heading {
  position: absolute;
  left: 5.9%;
  top: 3.6%;
  color: #fff;
}

.projetos-heading__title {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 5.4vw;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
}

.projetos-heading__title .accent {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0;
}

.projetos-heading__title .mark {
  line-height: 0.8;
  padding: 0 0.1em 0.04em;
}

.projetos-heading__title .mark,
.contato-title .mark {
  background: rgba(176, 206, 238, 0.9);
  color: #fff;
}

.projetos-heading__subtitle {
  position: absolute;
  left: 27.6%;
  top: 10.6%;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: max(0.6rem, 0.95vw);
  color: #fff;
  white-space: nowrap;
}

.project-item {
  position: absolute;
  transition: transform 0.2s ease;
}

/* Wrapper is invisible on desktop: items keep positioning against the stage */
.projetos-icons {
  display: contents;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.project-item:hover {
  transform: scale(1.06);
  z-index: 5;
}

.projetos-notas {
  position: absolute;
  left: 59.1%;
  bottom: 9%; /* bottom aligned with the VLOG folder */
  width: 31.8%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* ============================================================
   CONTATO
   ============================================================ */

.contato .page-photo__scrim {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.35) 0%, rgba(8, 8, 10, 0.15) 40%, rgba(8, 8, 10, 0.35) 100%);
}

.contato .page-photo {
  min-height: 100svh;
}

.contato-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5.5vw, 80px);
}

.contato .hero {
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  text-align: center;
  justify-content: flex-start;
  padding-top: clamp(90px, 15.6vw, 225px);
  padding-bottom: 80px;
}

.contato-title {
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contato-title .accent {
  font-weight: 400;
}

.contact-card {
  width: min(92vw, 762px);
  text-align: left;
  font-family: var(--font-ui);
  border-radius: clamp(10px, 1.1vw, 16px);
  padding: clamp(20px, 3.4vw, 50px) clamp(20px, 4.6vw, 66px) clamp(28px, 4.6vw, 66px);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.5);
}

.contact-card .card__header {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 clamp(18px, 3.3vw, 48px) calc(-1 * clamp(0px, 2vw, 29px));
}

.contact-card .card__header svg {
  width: clamp(20px, 2.4vw, 34px);
  height: clamp(20px, 2.4vw, 34px);
}

.contact-card .card__back svg {
  width: clamp(16px, 1.6vw, 22px);
}

.contact-card__title {
  font-weight: 700;
  font-size: clamp(1.15rem, 2.15vw, 1.95rem);
}

.contact-card .check-list {
  margin-top: clamp(20px, 3vw, 44px);
  padding-left: clamp(0px, 1.3vw, 19px);
  gap: clamp(10px, 1.5vw, 20px);
}

.contact-card .check-list li {
  font-size: clamp(1rem, 2.05vw, 1.85rem);
  font-weight: 400;
  gap: clamp(10px, 1.4vw, 20px);
}

.contact-card .check-icon,
.contact-card .insta-icon {
  width: clamp(22px, 2.1vw, 30px);
  height: clamp(22px, 2.1vw, 30px);
}

.contact-card .check-icon svg {
  width: 60%;
  height: 60%;
}

.contact-location .check-icon {
  background: var(--amber);
}



/* Projetos: tighter crop on the background so the hands show less */
.projetos .page-photo__img {
  --zoom: 1.32;
  transform-origin: 52% 47%;
}

/* Projetos entrance: title → images → notes */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

.projetos-heading,
.projetos-heading__subtitle {
  animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.projetos-heading__subtitle { animation-delay: 0.1s; }

.project-item {
  animation: pop-in 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.06s);
}

.projetos-notas {
  animation: notas-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  transform-origin: 30% 20%;
  animation-delay: 1.25s;
}

@keyframes notas-pop {
  from { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .projetos-heading,
  .projetos-heading__subtitle,
  .project-item,
  .projetos-notas {
    animation: none;
  }
}

/* Home: subtitle and tag words slide in from the side, one by one (js/words.js) */
.slide-line {
  display: block;
}

.slide-line .word {
  display: inline-block;
  animation: slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.2s + var(--w, 0) * 0.06s);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-line .word {
    animation: none;
  }
}

/* Home: photos stay hidden until js/words.js adds .is-in, which happens
   right when "portfólio" finishes; then they pop in one after another */
.js .home-photo--left,
.js .home-collage > * {
  opacity: 0;
}

.js .home-photo--left.is-in,
.js .home-collage > .is-in {
  opacity: 1;
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .js .home-photo--left.is-in,
  .js .home-collage > .is-in {
    animation: none;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

/* Home: drop the left phone photo, keep the collage */
@media (max-width: 980px) {
  .home-photo--left {
    display: none;
  }
}

@media (max-width: 760px) {
  /* Projetos & Contato: buttons centered in the flow instead of floating over the title */
  .nav--corner {
    position: relative;
    padding: 16px 12px 0;
  }

  .nav--corner .nav__inner {
    justify-content: center;
  }

  .nav--corner .pill {
    font-size: 0.75rem;
    padding: 7px 14px;
  }

  /* Contato: title + card kept together and centered on the screen,
     photo still fills the whole screen (no empty gaps) */
  .contato .page-photo {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .contato main {
    flex: 1;
    display: flex;
  }

  .contato .hero {
    flex: 1;
    min-height: 0;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .contato-stack {
    gap: 24px;
  }

  /* Contato: slightly smaller notes card on phones */
  .contact-card {
    width: 84vw;
    padding: 18px 20px 22px;
  }

  .contact-card .card__header {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .contact-card__title {
    font-size: 1.05rem;
  }

  .contact-card .check-list {
    margin-top: 16px;
    gap: 10px;
  }

  .contact-card .check-list li {
    font-size: 0.9rem;
    gap: 10px;
  }

  .contact-card .check-icon,
  .contact-card .insta-icon {
    width: 20px;
    height: 20px;
  }

  /* Projetos: phone home-screen layout — title, icon grid, then the notes card */
  .projetos .page-photo {
    min-height: 100svh;
  }

  .projetos-stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 10px;
    padding: 28px 18px 24px;
  }

  .projetos-heading,
  .projetos-heading__subtitle,
  .projetos-notas {
    position: static !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  /* Icons scattered like on desktop: a scaled copy of the desktop arrangement */
  .projetos-icons {
    display: block;
    position: relative;
    grid-column: 1 / -1;
    /* tighter than the desktop proportions so icons sit closer together */
    --squeeze: 0.78;
    aspect-ratio: 550 / calc(805 * var(--squeeze));
    width: 94%;
    margin-left: -8px; /* shifted toward the left edge */
  }

  .project-item {
    left: var(--ml) !important;
    top: var(--mt) !important;
  }

  .projetos-heading,
  .projetos-heading__subtitle,
  .projetos-notas {
    grid-column: 1 / -1;
  }

  .projetos-heading__title {
    font-size: 3.2rem;
    justify-content: center;
  }

  .projetos-heading__subtitle {
    font-size: 0.85rem;
    text-align: center;
    margin-top: -12px;
  }

  .project-item {
    width: calc(var(--mw) * 1.1) !important;
    height: calc(var(--mh) * 1.1 / var(--squeeze)) !important;
  }

  .projetos-notas {
    width: 100% !important;
    margin-top: 44px; /* more breathing room between the icons and the notes card */
  }
}
