/* ========================================================
   LILLYAN CARDOSO ZALAMENA — PORTFÓLIO ESTILO JORNAL ANTIGO
   ======================================================== */

:root {
  --paper: #f2ede2;
  --paper-dark: #e8e1d2;
  --ink: #1a1a1a;
  --ink-soft: #333;
  --rule: #1a1a1a;
  --placeholder-bg: #d9d9d9;
  --placeholder-border: #1a1a1a;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- language toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.lang-toggle:hover {
  transform: scale(1.08);
}

.lang-toggle__flag {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 600px) {
  .lang-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lang-toggle__flag {
    font-size: 17px;
  }
}

/* ---------- grain / chuvisco texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

/* ---------- page shell ---------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ---------- headline / body type helpers ---------- */
.section-title {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 62px;
  line-height: 1;
  margin: 0 0 6px;
  transform-origin: left bottom;
}

.section-title--extra {
  font-size: 38px;
}

.section-title--small {
  font-size: 54px;
  text-align: center;
  transform-origin: center bottom;
}

.section-subtitle {
  font-family: 'PT Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}

.body-copy {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 10px;
  text-align: justify;
  hyphens: auto;
}

.body-copy--lede {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  letter-spacing: 0.3px;
  margin: 12px 0;
}

.body-copy--small {
  font-size: 13.5px;
}

/* ---------- image placeholders ---------- */
.img-frame {
  border: 2px solid var(--placeholder-border);
  padding: 6px;
  background: var(--paper);
  margin-bottom: 14px;
}

.img-placeholder {
  background: var(--placeholder-bg);
  border: 1px solid #b9b9b9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'PT Serif', serif;
  color: #555;
  font-size: 14px;
  width: 100%;
  height: 100%;
}

.img-frame--wide {
  max-width: 320px;
  float: left;
  margin: 0 24px 14px 0;
}
.img-frame--wide .img-placeholder { min-height: 260px; }
.img-frame--tall .img-placeholder { min-height: 220px; }
.img-frame--project .img-placeholder { min-height: 150px; }

.img-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid #b9b9b9;
  filter: sepia(0.25) contrast(1.05);
}

.project-photo {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid #b9b9b9;
}

/* ================= MASTHEAD ================= */
.masthead {
  display: grid;
  grid-template-columns: auto 1px 1fr 1px auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 4px double var(--rule);
}

.masthead::before,
.masthead::after {
  content: "";
  display: block;
  align-self: stretch;
  background: var(--rule);
}

.masthead__date {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.masthead__title {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(32px, 6.6vw, 72px);
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0;
  transform: scaleY(1.2);
  transform-origin: center bottom;
}

.masthead__edition {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

/* ---------- ticker nav ---------- */
.ticker {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 30px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  flex-wrap: wrap;
}

.ticker a {
  color: var(--ink);
  text-decoration: none;
}

.ticker a:hover {
  text-decoration: underline;
}

.ticker__dot {
  color: var(--ink-soft);
}

/* ================= LEAD GRID (Sobre / Extra) ================= */
.lead-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 30px;
  margin-bottom: 46px;
}

.lead-col--about {
  position: relative;
  padding-right: 30px;
  border-right: 1px solid var(--rule);
  display: flow-root;
}

.lead-col--extra {
  padding-left: 0;
}

.extra-top {
  margin-bottom: 12px;
}

.tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--placeholder-border);
  padding: 12px 6px;
  background: var(--paper-dark);
}

.tool-icon {
  font-size: 32px;
  line-height: 1;
  filter: sepia(0.45) saturate(0.65) brightness(0.92) contrast(0.95);
  opacity: 0.88;
}

.tool-label {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #444;
}

/* ================= PROJECTS GRID ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding-top: 30px;
  border-top: 4px double var(--rule);
  margin-bottom: 50px;
}

.project-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 0.3px;
  margin: 6px 0 10px;
  transform: scaleY(1.15);
  transform-origin: left bottom;
}

.project-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-media-link:hover .img-placeholder {
  opacity: 0.8;
}

.project-more {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.project-more:hover {
  opacity: 0.65;
}

/* ================= TIMELINE (EXPERIÊNCIA) ================= */
.timeline {
  padding-top: 30px;
  border-top: 4px double var(--rule);
  margin-bottom: 50px;
}

.timeline__track {
  position: relative;
  max-width: 760px;
  margin-top: 30px;
  padding-left: 34px;
}

.timeline__track::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: var(--rule);
}

.timeline__item {
  position: relative;
  padding-bottom: 36px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  top: 6px;
  left: -34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rule);
}

.timeline__date {
  display: inline-block;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.timeline__role {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

/* ================= PROJECT DETAIL PAGE ================= */
.back-link {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 34px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.img-frame--video {
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin: 0 auto 34px;
}

.img-frame--video .img-placeholder {
  min-height: unset;
  height: 100%;
}

.video-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #b9b9b9;
}

.scroll-shot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #b9b9b9;
}

.scroll-shot__img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  animation: scroll-shot-play 16s ease-in-out infinite;
}

@keyframes scroll-shot-play {
  0%, 8%    { transform: translateY(0); }
  46%, 54%  { transform: translateY(-65.2%); }
  92%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-shot__img {
    animation: none;
  }
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slideshow__img.is-active {
  opacity: 1;
}

.project-detail-body {
  max-width: 860px;
  margin: 0 auto;
}

/* ================= CLASSIFIEDS / FOOTER ================= */
.classifieds {
  border-top: 4px double var(--rule);
  padding-top: 24px;
  text-align: center;
}

.classifieds__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 20px 0 28px;
}

.classified-item {
  background: var(--paper);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.classified-item__label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.classified-item__value {
  font-family: 'PT Serif', serif;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}

a.classified-item__value {
  color: var(--ink);
  text-decoration: none;
}

a.classified-item__value:hover {
  text-decoration: underline;
}

.masthead__footer-note {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 900px) {
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lead-col--about {
    padding-right: 0;
    border-right: none;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--rule);
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 600px) {
  .page {
    padding: 18px 14px 44px;
  }

  .img-frame--wide {
    float: none;
    max-width: 100%;
    margin: 0 0 14px;
  }

  .masthead {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    row-gap: 10px;
  }

  .masthead::before,
  .masthead::after {
    display: none;
  }

  .masthead__date,
  .masthead__edition {
    text-align: center;
    white-space: normal;
  }

  .ticker {
    gap: 6px;
    font-size: 11px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .classifieds__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .body-copy {
    text-align: left;
  }
}
