:root {
  --page: #ececea;
  --surface: #fbfbf9;
  --surface-soft: #f1f1ee;
  --ink: #151619;
  --ink-soft: #5d6067;
  --line: #d8d9d6;
  --blue: #d9e3fb;
  --blue-strong: #2146aa;
  --mint: #d9f0e4;
  --pink: #f6dce6;
  --lilac: #ebe3fa;
  --yellow: #f5edc7;
  --orange: #f4d9ca;
  --accent-lime: #dff0a6;
  --accent-coral: #f5c1b8;
  --focus: #2457d6;
  --radius: 16px;
  --shadow-low: 0 10px 28px rgba(20, 22, 27, 0.08);
  --shadow-high: 0 14px 42px rgba(20, 22, 27, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
a,
button {
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--page);
}

::-webkit-scrollbar-thumb {
  background: #b6b8b6;
  border: 3px solid var(--page);
  border-radius: 999px;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
  transition: transform 240ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.floating-header {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 2rem), 760px);
  min-height: 58px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(250, 250, 248, 0.68);
  box-shadow: 0 12px 35px rgba(24, 26, 31, 0.13);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transform: translateX(-50%);
}

.brand {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.primary-nav a {
  padding: 0.68rem 0.88rem;
  border-radius: 999px;
  color: #3f4248;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: rgba(21, 22, 25, 0.08);
  color: var(--ink);
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 0.12rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(21, 22, 25, 0.07);
}

.language-switch button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #62656b;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(20, 22, 27, 0.13);
}

.site-shell {
  width: min(calc(100% - 2rem), 1440px);
  margin: 1rem auto;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(21, 22, 25, 0.08);
}

.hero,
.section,
.contact-section,
.footer {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: min(920px, calc(100svh - 2rem));
  align-content: center;
  padding-block: 10rem 5rem;
}

.hero-copy {
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  max-width: 1030px;
  margin: 0;
  font-size: clamp(3rem, 7.6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
}

.hero-hello-line {
  position: relative;
  z-index: 0;
}

.hero-name {
  position: relative;
  display: inline-block;
  margin-left: 0.08em;
  padding: 0.02em 0.14em 0.07em;
  border-radius: 0.2em;
  background: var(--accent-lime);
  color: var(--ink);
  transform: rotate(-1.2deg);
}

.hero-name::after {
  position: absolute;
  top: -0.08em;
  right: -0.18em;
  width: 0.18em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-coral);
  content: "";
}

.hero-motion {
  min-height: 2em;
  margin-top: 0.12em;
  color: #62656d;
}

.hero-motion .word {
  display: inline-block;
  opacity: 0.12;
  filter: blur(8px);
  transform: translateY(0.45em);
  animation: word-in 1080ms var(--ease-out) forwards;
  animation-delay: calc(260ms + var(--word-index) * 145ms);
}

@keyframes word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-summary {
  max-width: 680px;
  margin: 2rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-low);
}

.button-primary:hover {
  box-shadow: var(--shadow-high);
}

.button-secondary {
  border: 1px solid rgba(21, 22, 25, 0.24);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.hero-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.5fr;
  gap: 1.5rem;
  width: min(100%, 930px);
  margin: 5rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.hero-facts div {
  display: grid;
  gap: 0.25rem;
}

.hero-facts span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-facts strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.section {
  padding-block: 7.5rem;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading h2,
.contact-section h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading p {
  max-width: 55ch;
  margin: 0;
  color: var(--ink-soft);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 3rem;
}

.work-section {
  border-top: 1px solid var(--line);
}

.project-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.project-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: inherit;
  box-shadow: var(--shadow-low);
  text-decoration: none;
  transition:
    transform 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-high);
}

.project-featured {
  grid-row: span 2;
  align-self: start;
}

.project-wide {
  grid-column: 1 / -1;
}

.project-media {
  overflow: hidden;
  padding: 1rem;
}

.project-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 640ms var(--ease-out);
}

.project-card:hover .project-media img {
  transform: scale(1.018);
}

.project-media-mint {
  background: #d8f3e9;
}

.project-media-pink {
  background: #f3dce3;
}

.project-media-blue {
  background: #dce3fb;
}

.project-media-yellow {
  background: var(--yellow);
}

.project-media-banco {
  background: #d8f3ef;
}

.project-banco .project-media {
  padding: clamp(1rem, 3vw, 2.5rem);
}

.project-banco .project-media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(17, 81, 69, 0.16);
}

.project-media-yellow img {
  aspect-ratio: 808 / 600;
  object-fit: cover;
  object-position: top;
}

.project-featured .project-media {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.project-featured .project-media img {
  aspect-ratio: 808 / 600;
  object-fit: cover;
}

.project-body {
  padding: 1.45rem 1.5rem 1.6rem;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-title-row h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.project-type {
  flex: 0 0 auto;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: #2e3035;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-type-ux {
  background: var(--accent-lime);
}

.project-type-identity {
  background: var(--accent-coral);
}

.project-body > p {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: #2e3035;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-mint {
  background: var(--mint);
}

.tag-blue {
  background: var(--blue);
}

.tag-blue-strong {
  background: #cad5ff;
  color: #173681;
}

.tag-pink {
  background: var(--pink);
}

.tag-lilac {
  background: var(--lilac);
}

.tag-yellow {
  background: var(--yellow);
}

.tag-orange {
  background: var(--orange);
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.about-detail p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.experience-section {
  border-top: 1px solid var(--line);
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 7rem);
}

.history-column > h3,
.capability-list h3 {
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.history-item h4,
.history-item p {
  margin: 0;
}

.history-item h4 {
  font-size: 1rem;
}

.history-item > div p,
.history-item time {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.history-item > div .history-role {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.history-role-ux {
  background: var(--mint);
}

.history-role-visual {
  background: var(--pink);
}

.history-item .history-year {
  height: fit-content;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-item .history-year-highlight {
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.history-item > p {
  grid-column: 1 / -1;
  max-width: 68ch;
  margin-top: 1rem;
  color: #4e5157;
  font-size: 0.88rem;
}

.capabilities-section {
  border-top: 1px solid var(--line);
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.capability-list > div {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}

.capability-list h3 {
  margin-bottom: 0.65rem;
}

.capability-list p {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.capability-tags {
  margin-top: 1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1.75rem;
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: var(--blue);
  text-align: center;
}

.contact-heading {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1rem;
}

.contact-section h2 {
  max-width: 760px;
}

.contact-section p {
  max-width: 58ch;
  margin: 0;
  color: #394969;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.button-contact {
  min-height: 62px;
  padding: 1rem 1.8rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.96rem;
}

.button-contact:hover {
  background: rgba(251, 251, 249, 0.5);
}

.footer {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer p {
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 0.32rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-low);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.social-email {
  background: var(--mint);
  color: #315e4a;
}

.social-behance {
  background: var(--blue);
  color: #214d9b;
}

.social-dribbble {
  background: var(--pink);
  color: #96365f;
}

.behance-mark {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(calc(100% - 1rem), 1440px);
    margin: 0.5rem auto;
    border-radius: 18px;
  }

  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(100% - 2rem, 720px);
  }

  .hero {
    min-height: auto;
    padding-block: 9rem 4.5rem;
  }

  .split-heading,
  .about-grid,
  .contact-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
    gap: 1.25rem;
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-row: auto;
  }

  .project-wide {
    grid-column: auto;
  }

  .project-featured .project-media {
    min-height: auto;
  }

  .contact-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .floating-header {
    top: 0.75rem;
    width: calc(100% - 2rem);
    min-height: auto;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.35rem 0.75rem;
    padding: 0.5rem;
    border-radius: 24px;
  }

  .hero,
  .section,
  .contact-section,
  .footer {
    width: calc(100% - 4rem);
  }

  .brand {
    width: 39px;
    height: 39px;
  }

  .primary-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0.2rem;
  }

  .primary-nav a {
    padding: 0.58rem 0.28rem;
    font-size: 0.66rem;
    text-align: center;
    white-space: nowrap;
  }

  .language-switch {
    justify-self: end;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.8vw, 4.5rem);
  }

  .hero-name {
    margin-top: 0.08em;
    margin-left: 0;
  }

  .hero-facts,
  .history-grid,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 1.1rem;
  }

  .history-grid {
    gap: 4rem;
  }

  .section {
    padding-block: 4.75rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .project-title-row {
    flex-direction: column;
    gap: 0.7rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .contact-section {
    margin-top: 1rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 10rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .project-media,
  .project-body {
    padding: 0.75rem;
  }

  .project-body {
    padding-top: 1.15rem;
    padding-bottom: 1.25rem;
  }

  .project-title-row {
    align-items: flex-start;
  }

  .footer {
    padding: 1.25rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-motion .word {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
