/* Lorhan Borges Paixão — portfólio */

:root {
  --bg: #08080c;
  --bg-soft: #101016;
  --orange: #ff5a1f;
  --orange-deep: #e24612;
  --orange-soft: #ff7a47;
  --text: #f3efe8;
  --muted: #9b958c;
  --mute-2: #6e6a64;
  --line: rgba(243, 239, 232, 0.12);
  --frame: rgba(236, 240, 244, 0.45);
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-name: "Oswald", "Arial Narrow", sans-serif;
  --font-script: "Great Vibes", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* Noise + warm glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.15rem 2.4rem;
  gap: 1rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  justify-self: start;
}
.logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #140800;
  font-family: var(--font-name);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.logo-text {
  font-family: var(--font-name);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  justify-self: end;
  text-decoration: none;
  border: 1px solid var(--orange);
  color: var(--text);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--orange); color: #140800; }
.nav-toggle {
  display: none;
  width: 2rem;
  height: 1.4rem;
  position: relative;
  justify-self: end;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
}
.nav-toggle span:first-child { top: 0.35rem; }
.nav-toggle span:last-child { bottom: 0.35rem; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16), transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.hero-eyebrow {
  position: absolute;
  top: 5.2rem;
  left: 2.4rem;
  z-index: 5;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-2);
  animation: rise 0.9s var(--ease) both;
}
.hero-word {
  position: absolute;
  left: 50%;
  top: 36.5%;
  transform: translate(-50%, -50%);
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20.4vw;
  line-height: 0.72;
  letter-spacing: -0.04em;
  color: var(--orange);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  animation: word-in 1.15s var(--ease) both;
}
.hero-layout {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr) 160px;
  align-items: stretch;
  padding: 5.6rem 2.4rem 0.25rem;
  gap: 1rem;
  min-height: 0;
}
.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.2rem;
  animation: rise 1s var(--ease) 0.15s both;
}
.hero-hello {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  line-height: 1;
  color: #fff;
  margin: 0 0 0.15rem 0.15rem;
}
.hero-name {
  font-family: var(--font-name);
  font-weight: 700;
  font-size: clamp(3.6rem, 7.2vw, 6.4rem);
  letter-spacing: -0.02em;
  line-height: 0.85;
  text-transform: uppercase;
  color: #fff;
}
.hero-name span { color: #fff; }
.hero-name { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero-role {
  margin-top: 1.55rem;
  font-family: var(--font-name);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 10px var(--bg), 0 0 18px var(--bg);
}
.hero-lead {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 22.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 1.35rem;
  background: var(--orange);
  color: #140800;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.35rem;
  min-width: 9.5rem;
  width: auto;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--orange-soft); transform: translateY(-1px); }
.hero-note {
  margin-top: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
}

/* Portrait */
.hero-portrait {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  padding-bottom: 0.15rem;
}
.portrait-img {
  position: relative;
  z-index: 2;
  height: calc(100svh - 12.4rem);
  max-height: 690px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: portrait-in 1.2s var(--ease) 0.2s both;
  pointer-events: auto;
}
.portrait-frame {
  position: absolute;
  z-index: 3;
  width: min(64%, 320px);
  height: min(62%, 430px);
  top: 44%;
  left: 50%;
  transform: translate(-50%, -58%);
  border: 1px solid var(--frame);
  pointer-events: none;
  animation: fade 1.1s var(--ease) 0.45s both;
}
.br {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--orange);
  border-style: solid;
}
.br-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.br-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.br-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.br-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.tick {
  position: absolute;
  background: var(--frame);
}
.tick.t-l, .tick.t-r {
  width: 6px;
  height: 1px;
  top: 50%;
}
.tick.t-l { left: -10px; }
.tick.t-r { right: -10px; }
.tick.t-b {
  width: 1px;
  height: 6px;
  left: 50%;
  bottom: -10px;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
  padding-top: 1rem;
  animation: rise 1s var(--ease) 0.35s both;
}
.aside-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--orange);
}
.aside-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.aside-block strong {
  font-family: var(--font-name);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aside-block span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Bottom bar */
.hero-bar {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2.4rem 0.95rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bar-item { margin: 0; text-align: center; text-decoration: none; }
.bar-item:first-child { text-align: left; }
.bar-item:last-child { text-align: right; }
.bar-case {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.bar-case:hover { color: var(--orange); }
.bar-icon {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  letter-spacing: 0;
}

/* Sections */
.section, #ilha {
  scroll-margin-top: 4.6rem;
}
.section {
  position: relative;
  padding: 6.5rem 2.4rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.section-head { max-width: 38rem; margin-bottom: 3rem; }
.section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}
.section-head h2 {
  font-family: var(--font-name);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.project {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.6rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  min-height: 100%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.project:hover { border-color: rgba(255, 90, 31, 0.45); transform: translateY(-2px); }
.project.featured { grid-column: 1 / -1; padding: 2rem 1.8rem; }
.project-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--orange);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 0.15rem;
}
.project-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 0.45rem;
}
.project-body h3 {
  font-family: var(--font-name);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.project-body p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52rem;
}
.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.text-link:hover { color: var(--orange-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-copy p + p { margin-top: 1rem; }
.about-copy p { color: var(--muted); }
.about-copy a { color: var(--orange); text-decoration: none; }
.about-copy a:hover { text-decoration: underline; }
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.skills li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--orange);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 2.6rem 1.8rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.time {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.timeline h3 {
  font-family: var(--font-name);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.timeline p:last-child { color: var(--muted); max-width: 40rem; }

.contact { padding-bottom: 5rem; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.contact-links a {
  text-decoration: none;
  border: 1px solid var(--orange);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-name);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-links a:hover { background: var(--orange); color: #140800; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2.4rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--mute-2);
  font-size: 0.78rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(1.04); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes portrait-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) both;
  animation-play-state: paused;
}
.reveal.is-in { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    padding-right: 1.5rem;
  }
  .hero-aside { display: none; }
  .hero-word { font-size: 24vw; }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 1rem 1.2rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 8, 12, 0.96);
    flex-direction: column;
    padding: 1rem 1.2rem 1.4rem;
    gap: 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-cta { display: none; }
  .nav.open .nav-cta {
    display: inline-flex;
    justify-self: start;
    margin: 0 1.2rem 1rem;
  }
  .nav-toggle { display: block; }
  .hero { height: auto; min-height: 100svh; }
  .hero-word {
    font-size: 28vw;
    top: 28%;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 7.5rem 1.2rem 2rem;
    text-align: left;
  }
  .hero-copy {
    padding-top: 0;
    max-width: none;
    margin-top: 0.4rem;
    order: 1;
  }
  .hero-portrait {
    order: 0;
    height: 52vw;
    min-height: 240px;
    max-height: 360px;
    margin-bottom: 0.2rem;
    justify-content: center;
  }
  .portrait-img { height: 100%; max-height: none; }
  .hero-lead { font-size: 0.88rem; }
  .hero-bar {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.7rem 1.2rem 0.9rem;
  }
  .bar-item, .bar-item:last-child, .bar-item:first-child { text-align: left; }
  .section { padding: 4.5rem 1.2rem 1.5rem; }
  .projects, .about-grid { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .footer { padding: 1.2rem; flex-direction: column; }
}

@media (min-height: 900px) and (min-width: 1100px) {
  .portrait-img { height: calc(100svh - 12.4rem); max-height: 740px; }
}
