:root {
  --bg: #f4f5f7;
  --surface: #fff;
  --ink: #16171a;
  --muted: #666a73;
  --line: #d9dce2;
  --soft: #e9ebf0;
  --accent: #5b5ce2;
  --accent-soft: #eeeeff;
  --success: #2f8065;
  --signature: #f27622;

  --sans: "Inter", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(6rem, 11vw, 10rem);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.container {
  width: min(
    calc(100% - var(--gutter) - var(--gutter)),
    var(--container)
  );
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  font-size: 0.86rem;
}

.main-nav > a:not(.button):hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.7rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1.5px;
  margin: 6px;
  background: var(--ink);
  transition: 0.2s;
}

/* Buttons */

.button {
  min-height: 50px;
  padding: 0 1.35rem;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.2s;
}

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

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button-light:hover {
  background: white;
}

.button-small {
  min-height: 42px;
}

/* Hero */

.hero {
  min-height: 760px;
  padding-block: clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6vw;
}

.eyebrow,
.section-label {
  font: 500 0.67rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  color: var(--accent);
}

.key-symbol {
  font-size: 1rem;
}

.hero h1 {
  max-width: 670px;
  margin: 1.5rem 0 1.8rem;
  font: 600 clamp(3.3rem, 6vw, 5.8rem) / 0.98 var(--display);
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.alt-trigger {
  margin-top: 2.5rem;
  color: var(--muted);
  font: 500 0.61rem var(--mono);
}

kbd {
  padding: 0.35rem 0.55rem;
  border: 1px solid #c9ccd3;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: 500 0.62rem var(--mono);
}

.alternative-button {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 0.7rem 1rem;
  color: var(--ink);
  font: 500 0.67rem var(--mono);
}

/* Hero build view */

.build-view {
  border: 1px solid #cfd2d9;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(27, 29, 35, 0.08);
  overflow: hidden;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.alt-active .build-view {
  border-color: var(--accent);
  box-shadow: 0 18px 60px rgba(91, 92, 226, 0.12);
}

.build-header,
.build-footer,
.window-chrome {
  height: 40px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.52rem var(--mono);
  letter-spacing: 0.05em;
}

.build-live {
  color: var(--success);
}

.build-live i,
.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.build-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 390px;
}

.file-tree {
  padding: 2.1rem 1.4rem;
  border-right: 1px solid var(--line);
  font: 500 0.65rem/1.85 var(--mono);
}

.file-tree p {
  margin: 0;
  white-space: nowrap;
}

.tree-line,
.tree-child {
  color: var(--muted);
}

.tree-line span,
.tree-child span {
  color: #afb2ba;
}

.tree-child {
  padding-left: 0.8rem;
}

.file-tree i {
  font-style: normal;
  color: var(--ink);
}

.file-tree small {
  display: block;
  width: max-content;
  margin: -0.1rem 0 0.25rem 2.8rem;
  padding: 0.05rem 0.35rem;
  background: var(--soft);
  color: var(--muted);
  transition: 0.2s;
}

.active-file {
  color: var(--accent);
}

.active-file small,
.alt-active .file-tree small {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-preview {
  margin: 2rem 1.6rem;
  border: 1px solid var(--line);
  background: #fafbfc;
}

.preview-toolbar {
  height: 30px;
  padding: 0 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-toolbar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c6c8ce;
}

.preview-toolbar span {
  margin-left: auto;
  color: #a1a4ab;
  font: 0.45rem var(--mono);
}

.preview-canvas {
  padding: 1.4rem;
}

.preview-nav {
  width: 100%;
  height: 6px;
  background: #dfe1e6;
}

.preview-title {
  width: 64%;
  height: 18px;
  margin: 2.6rem 0 1rem;
  background: var(--ink);
}

.preview-copy {
  width: 85%;
  height: 5px;
  margin: 0.5rem 0;
  background: #d4d7dd;
}

.preview-copy.short {
  width: 57%;
}

.preview-actions {
  display: flex;
  gap: 0.4rem;
  margin: 1.4rem 0 2rem;
}

.preview-actions i {
  width: 55px;
  height: 18px;
  background: var(--accent);
}

.preview-actions i + i {
  border: 1px solid #bdc0c8;
  background: white;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.preview-grid i {
  height: 64px;
  border: 1px solid #dddfe4;
  background: #f1f2f5;
}

.build-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.build-footer strong {
  color: var(--success);
  font-weight: 500;
}

.build-footer span:nth-child(2) {
  padding: 0.2rem 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  transition: 0.2s;
}

/* General sections */

.section {
  padding-block: var(--section);
}

.projects {
  border-top: 1px solid var(--line);
  background: #eceef2;
}

.section-heading {
  margin-bottom: 4rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

h2 {
  margin: 0;
  font: 600 clamp(2.7rem, 5.3vw, 4.8rem) / 1.02 var(--display);
  letter-spacing: -0.055em;
}

.section-intro {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Base projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 1.25rem;
}

.project-card {
  min-width: 0;
}

.product-window {
  height: clamp(310px, 33vw, 420px);
  margin-bottom: 1.4rem;
  border: 1px solid #cdd0d7;
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  transition: 0.25s;
}

.project-card:hover .product-window {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(28, 30, 37, 0.08);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
  font: 500 0.58rem var(--mono);
}

.project-card h3 {
  margin: 0 0 0.7rem;
  font: 600 2.5rem var(--display);
  letter-spacing: -0.05em;
}

.project-card > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  font: 500 0.56rem var(--mono);
}

.status {
  color: var(--success);
  text-transform: uppercase;
}

.status.validation {
  color: #8b6e2f;
}

.access {
  color: var(--muted);
}

.leve-content > span {
  color: #9397a0;
  font: 0.5rem var(--mono);
}

/* Leve */

.leve-content {
  padding: 2.2rem;
  background: #f7f8fa;
  height: calc(100% - 40px);
}

.leve-content h4 {
  margin: 1rem 0 1.5rem;
  font: 600 1.5rem var(--display);
}

.moods {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.moods i {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
}

.moods i:nth-child(3) {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.habit {
  display: grid;
  grid-template-columns: 90px 1fr 75px;
  align-items: center;
  margin: 0.9rem 0;
  font-size: 0.65rem;
}

.habit span {
  height: 5px;
  background: #e0e2e7;
}

.habit span i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--accent);
}

.habit small {
  text-align: right;
  color: var(--muted);
}

.swipe-hint {
  display: none;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 8vw;
}

.alternative-path {
  position: relative;
  padding: 3rem;
  border: 1px solid var(--line);
  background: white;
  font: 500 0.85rem/2.5 var(--mono);
  box-shadow: 10px 10px 0 var(--accent-soft);
}

.alternative-path span {
  display: block;
}

.path-branch {
  padding-left: 1rem;
  color: var(--muted);
}

.branch-alt {
  color: var(--ink);
}

.branch-alt b,
.branch-alt i {
  color: var(--accent);
  font-style: normal;
}

.path-status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.about-copy > p:not(.section-label) {
  max-width: 650px;
  margin-top: 2rem;
  color: var(--muted);
  line-height: 1.8;
}

.principles {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font: 500 0.55rem var(--mono);
}

/* Contact */

.contact {
  background: #191b20;
  color: #f4f5f7;
}

.contact .section-label {
  color: #9293ff;
}

.contact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-heading h2 {
  max-width: 850px;
}

.contact-heading p {
  max-width: 300px;
  color: #a3a6ae;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #3a3d45;
  border-left: 1px solid #3a3d45;
}

.contact-card {
  min-height: 125px;
  padding: 1.5rem;
  border-right: 1px solid #3a3d45;
  border-bottom: 1px solid #3a3d45;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: 0.2s;
}

.contact-card:hover {
  background: #23262d;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #4b4e57;
  display: grid;
  place-items: center;
  font: 0.7rem var(--mono);
}

.contact-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card small {
  color: #888b94;
  font: 0.5rem var(--mono);
}

.contact-card strong {
  font-size: 0.86rem;
}

.contact-card > b {
  margin-left: auto;
  color: #9293ff;
}

.contact-card--whatsapp,
.contact-card--instagram {
  min-height: clamp(150px, 14vw, 180px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.contact-card--whatsapp .contact-icon,
.contact-card--instagram .contact-icon {
  width: 56px;
  height: 56px;
  border-color: var(--signature);
  color: var(--signature);
}

.contact-card--whatsapp strong,
.contact-card--instagram strong {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.contact-number {
  color: #d6d8de;
  font: 500 clamp(0.9rem, 1.5vw, 1.05rem) var(--mono);
}

.contact-card--whatsapp > b,
.contact-card--instagram > b {
  color: var(--signature);
  font-size: 1.15rem;
}

/* Footer */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid #3a3d45;
  background: #191b20;
  color: white;
}

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

.footer-brand img {
  width: 58px;
  height: 58px;
}

.footer-inner > div p,
.footer-statement,
.copyright,
.back-to-top {
  margin: 0.5rem 0 0;
  color: #888b94;
  font: 0.52rem var(--mono);
}

.footer-statement {
  max-width: 180px;
  line-height: 1.6;
}

.back-to-top span {
  color: #9293ff;
  margin-left: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #a5a8b0;
  font: 0.52rem var(--mono);
}

.footer-links a,
.back-to-top {
  transition: color 0.2s;
}

.footer-links a:hover,
.back-to-top:hover {
  color: white;
}

/* First responsive layer */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .build-view {
    max-width: 680px;
  }

  .about {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4vw;
  }

  .section-heading,
  .contact-heading {
    align-items: start;
    flex-direction: column;
  }
}

/* Mobile */

@media (max-width: 700px) {
  :root {
    --section: 6rem;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
    z-index: 20;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 10;
    top: 70px;
    left: 0;
    right: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    transform: translateY(-8px);
    transition: 0.2s;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-nav > a:not(.button) {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .button {
    margin-top: 1rem;
  }

  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .desktop-hint {
    display: none;
  }

  .alternative-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .build-body {
    grid-template-columns: 1fr;
  }

  .file-tree {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-preview {
    display: none;
  }

  .build-footer span:first-child {
    display: none;
  }

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

  .projects .container {
    width: 100%;
  }

  .projects .section-heading {
    width: calc(100% - var(--gutter) - var(--gutter));
    margin-inline: auto;
  }

  .projects-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.3rem var(--gutter) 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .project-card {
    flex: 0 0 min(84vw, 420px);
    scroll-snap-align: start;
  }

  .product-window {
    height: 330px;
  }

  .swipe-hint {
    display: block;
    padding-inline: var(--gutter);
    color: var(--muted);
    font: 0.52rem var(--mono);
  }

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

  .alternative-path {
    padding: 2rem;
    max-width: 440px;
  }

  .principles {
    gap: 1rem;
    flex-wrap: wrap;
  }

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

  .contact-heading {
    margin-bottom: 2.5rem;
  }

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

/* Home contact and institutional footer */

.home-page .contact-heading h2 {
  max-width: 780px;
  font-size: clamp(2.7rem, 4.65vw, 4.2rem);
  text-wrap: balance;
}

.home-page .contact-heading p {
  max-width: 390px;
}

:is(.home-page, .product-page, .institutional-page) .site-footer {
  padding-block: clamp(2.75rem, 4vw, 3.75rem);
  border-top-color: rgba(15, 23, 42, 0.12);
  background: #f7f7f5;
  color: var(--ink);
}

:is(.home-page, .product-page, .institutional-page) .footer-inner {
  display: block;
}

:is(.home-page, .product-page, .institutional-page) .footer-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
}

:is(.home-page, .product-page, .institutional-page) .footer-identity {
  display: grid;
  gap: 0.35rem;
}

:is(.home-page, .product-page, .institutional-page) .footer-brand {
  flex: 0 0 4rem;
  width: 4rem;
  height: 4rem;
  overflow: visible;
}

:is(.home-page, .product-page, .institutional-page) .footer-brand img {
  width: 4rem;
  height: 4rem;
  max-width: 100%;
  object-fit: contain;
}

:is(.home-page, .product-page, .institutional-page) .footer-name {
  margin: 0;
  color: var(--ink);
  font: 600 1.0625rem var(--display);
}

:is(.home-page, .product-page, .institutional-page) .footer-statement {
  margin: 0;
  max-width: none;
  color: #555963;
  font: 0.875rem/1.6 var(--sans);
}

:is(.home-page, .product-page, .institutional-page) .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

:is(.home-page, .product-page, .institutional-page) .footer-meta {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

:is(.home-page, .product-page, .institutional-page) .footer-statement,
:is(.home-page, .product-page, .institutional-page) .copyright,
:is(.home-page, .product-page, .institutional-page) .back-to-top,
:is(.home-page, .product-page, .institutional-page) .footer-links {
  font-size: 0.8125rem;
}

:is(.home-page, .product-page, .institutional-page) .footer-links,
:is(.home-page, .product-page, .institutional-page) .back-to-top {
  color: var(--ink);
}

:is(.home-page, .product-page, .institutional-page) .copyright {
  color: var(--muted);
}

:is(.home-page, .product-page, .institutional-page) .footer-links a:hover,
:is(.home-page, .product-page, .institutional-page) .back-to-top:hover {
  color: var(--signature);
}

:is(.home-page, .product-page, .institutional-page) .copyright,
:is(.home-page, .product-page, .institutional-page) .back-to-top {
  margin: 0;
}

@media (max-width: 920px) {
  :is(.home-page, .product-page, .institutional-page) .footer-bottom {
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  :is(.home-page, .product-page, .institutional-page) .site-footer {
    padding-block: 2.75rem;
  }

  :is(.home-page, .product-page, .institutional-page) .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  :is(.home-page, .product-page, .institutional-page) .footer-bottom,
  :is(.home-page, .product-page, .institutional-page) .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  :is(.home-page, .product-page, .institutional-page) .footer-bottom {
    gap: 1.5rem;
  }

  :is(.home-page, .product-page, .institutional-page) .footer-meta {
    gap: 1.25rem;
  }

  :is(.home-page, .product-page, .institutional-page) .footer-links {
    flex-flow: row wrap;
    gap: 0.75rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .build-footer strong {
    font-size: 0.45rem;
  }

  .product-window {
    height: 300px;
  }

  .leve-content {
    padding: 1.5rem;
  }

  .alternative-path {
    padding: 1.5rem;
    font-size: 0.72rem;
  }
}

/* Alt. signature */

::selection {
  background: var(--signature);
  color: white;
}

.brand-wordmark {
  font: 700 2rem/1 var(--display);
  letter-spacing: -0.08em;
}

.brand-wordmark > span,
.signature-dot {
  color: var(--signature);
}

.main-nav > a:not(.button) {
  position: relative;
}

.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--signature);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s;
}

.main-nav > a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button > span {
  color: var(--signature);
  transition: transform 0.2s;
}

.button:hover > span {
  transform: translate(0.12rem, -0.12rem);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  margin-right: 0.6rem;
  background: var(--signature);
  vertical-align: middle;
}

.key-symbol {
  color: var(--signature);
}

kbd {
  border-bottom-color: var(--signature);
}

.alternative-button[aria-pressed="true"] {
  border-color: var(--signature);
  box-shadow: inset 3px 0 0 var(--signature);
}

.preview-toolbar i:first-child {
  background: var(--signature);
}

.project-card:hover .product-window {
  border-bottom-color: var(--signature);
}

.access {
  transition: color 0.2s;
}

.project-card:hover .access {
  color: var(--signature);
}

.branch-alt i {
  color: var(--signature);
}

.contact-card:hover {
  box-shadow: inset 3px 0 0 var(--signature);
}

.contact-card > b {
  color: var(--signature);
  transition: transform 0.2s;
}

.contact-card:hover > b {
  transform: translate(0.15rem, -0.15rem);
}

.footer-brand .brand-wordmark {
  font-size: 2.3rem;
}

.back-to-top span {
  color: var(--signature);
}

/* Hero signature accents */

.build-view {
  position: relative;
}

.build-view::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 1.2rem;
  width: 64px;
  height: 3px;
  background: var(--signature);
  transition:
    width 0.25s,
    opacity 0.25s;
}

.active-file {
  position: relative;
}

.active-file::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: -0.8rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signature);
}

.active-file small {
  background: #fff3eb;
  color: var(--ink);
}

.build-footer span:nth-child(2) {
  background: #fff3eb;
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--signature);
}

.preview-toolbar i:first-child,
.preview-toolbar i:nth-child(3) {
  background: var(--signature);
}

.preview-toolbar i:nth-child(3) {
  opacity: 0.45;
}

.hero-actions .button-dark {
  position: relative;
}

.hero-actions .button-dark::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: -5px;
  width: 28px;
  height: 2px;
  background: var(--signature);
  transition: width 0.2s;
}

.hero-actions .button-dark:hover::after {
  width: 42px;
}

.alt-active .build-view::before {
  width: 118px;
}

.alt-active .active-file {
  color: var(--signature);
}

.alt-active .active-file small,
.alt-active .file-tree .tree-line:nth-of-type(2) small {
  background: #ffe9da;
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--signature);
}

.alt-active .build-footer span:nth-child(2) {
  background: #ffe2cf;
  box-shadow: inset 3px 0 0 var(--signature);
}

.alt-active .preview-toolbar i {
  background: var(--signature);
}

.alt-active .preview-toolbar i:nth-child(2) {
  opacity: 0.7;
}

.alt-active .preview-toolbar i:nth-child(3) {
  opacity: 1;
}

.alt-active .hero-actions .button-dark::after {
  width: 52px;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: clamp(-2.5rem, -3.25vw, -1.5rem);
  width: 4px;
  height: clamp(520px, 44vw, 600px);
  border-radius: 3px;
  background: var(--signature);
  transform: translateY(-50%);
}

@media (max-width: 920px) {
  .hero-copy::before {
    left: clamp(-2rem, -3.25vw, -1.25rem);
    width: 3px;
    height: clamp(400px, 55vw, 480px);
  }
}

@media (max-width: 700px) {
  .hero-copy::before {
    top: -1.25rem;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    transform: none;
  }
}

/* Contact and footer density */

.contact {
  padding-block:
    clamp(4.5rem, 7vw, 6rem)
    clamp(3.5rem, 5vw, 4.5rem);
}

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

.contact-heading p {
  max-width: 350px;
  font-size: 0.96rem;
}

.contact-card {
  position: relative;
}

.contact-card:hover {
  background: #24272e;
  box-shadow: inset 3px 0 0 var(--signature);
}

.contact-card:hover > b {
  transform: translate(2px, -2px);
}

.site-footer {
  padding-block: 2.25rem;
}

.footer-inner {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.7fr)
    minmax(180px, 1fr)
    auto
    auto
    auto;
  align-items: end;
  column-gap: clamp(2rem, 5vw, 5rem);
}

.footer-inner > div p,
.footer-statement,
.copyright,
.back-to-top {
  color: #a5a8b0;
}

@media (max-width: 920px) {
  .footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer-statement {
    flex: 1 1 240px;
  }
}

/* About story */

.origin-timeline {
  font-size: 1.35rem;
  line-height: 1.4;
}

.origin-timeline .timeline-step {
  width: max-content;
}

.origin-timeline .timeline-arrow {
  margin: 0.55rem 0 0.55rem 1rem;
  color: var(--muted);
  line-height: 1;
}

.origin-timeline .timeline-origin {
  color: var(--accent);
  font-weight: 700;
}

.origin-timeline .signature-dot {
  display: inline;
  color: var(--signature);
}

.origin-timeline .path-status {
  color: var(--signature);
}

.about-story .story-paragraph,
.about-story .story-question,
.about-story .story-origin {
  display: block;
}

.about-story .story-paragraph {
  margin-bottom: 1.25rem;
}

.about-story .story-question {
  margin: 2.1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--signature);
  font-size: 1.12em;
  font-weight: 600;
  line-height: 1.65;
}

.about-story .story-origin {
  margin: 2rem 0;
  font-weight: 600;
}

.about-story .story-paragraph:last-child {
  margin-bottom: 0;
}

/* Project links */

.project-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.project-link > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.project-link .project-bottom {
  margin-top: auto;
  padding-top: 1.2rem;
}

.project-link .access {
  font-size: 0.62rem;
}

.project-link .access i {
  display: inline-block;
  color: inherit;
  font-style: normal;
  transition: transform 0.2s;
}

.project-link:hover .access {
  color: var(--signature);
}

.project-link:hover .access i {
  transform: translate(2px, -2px);
}

/* Editorial project showcase */

.projects {
  padding-block: clamp(4.5rem, 7vw, 7rem);
}

.projects .section-heading {
  margin-bottom: 2.5rem;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.projects .section-heading > div {
  max-width: 540px;
}

.projects h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.projects .section-intro {
  max-width: 370px;
}

.projects-grid {
  display: block;
}

.project-card {
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem);
}

.project-card:first-child {
  padding-top: 1rem;
}

.project-card + .project-card {
  border-top: 1px solid rgba(22, 23, 26, 0.1);
}

.project-link {
  display: grid;
  height: auto;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(260px, 0.8fr);
  grid-template-areas:
    "preview meta"
    "preview title"
    "preview description"
    "preview footer";
  column-gap: clamp(2.5rem, 6vw, 6rem);
  align-content: center;
}

.project-card:nth-child(even) .project-link {
  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(0, 1.2fr);
  grid-template-areas:
    "meta preview"
    "title preview"
    "description preview"
    "footer preview";
}

.project-link .product-window {
  grid-area: preview;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  border: 0;
  background: transparent;
  align-self: center;
}

.product-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-preview-image--tenho {
  object-position: left center;
}

.product-preview-image--rods,
.product-preview-image--pit,
.product-preview-image--leve {
  object-position: center top;
}

.project-link .project-meta {
  grid-area: meta;
  align-self: end;
}

.project-link h3 {
  grid-area: title;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.project-link > p {
  grid-area: description;
  max-width: 390px;
  margin-block: 0.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.project-link .project-bottom {
  grid-area: footer;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  align-self: start;
  gap: 1rem;
}

.project-link .access {
  white-space: nowrap;
}

.project-card:hover .product-window {
  transform: translateY(-2px);
  box-shadow: none;
}

.project-meta span:last-child {
  opacity: 0.68;
}

.project-card:hover .product-window,
.project-link:focus-visible .product-window {
  transform: none;
}

.product-window > * {
  transition: transform 300ms ease;
}

.project-link:hover .product-window > *,
.project-link:focus-visible .product-window > * {
  transform: scale(1.015);
}

.project-card:nth-child(4) .project-link {
  align-content: center;
}

/* Brand */

.brand-name .brand-dot {
  display: inline;
  color: var(--signature);
}

.footer-brand {
  width: 3.75rem;
  height: 2.5rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.footer-brand img {
  display: block;
  width: clamp(7.5rem, 9vw, 9rem);
  max-width: none;
  height: auto;
  object-fit: contain;
}

.site-footer {
  padding-block: 1.9rem;
}

.footer-statement {
  max-width: 240px;
}

/* Editorial responsive */

@media (max-width: 920px) {
  .projects .section-heading {
    margin-bottom: 2rem;
  }

  .project-card {
    padding-block: 2.75rem;
  }

  .project-link,
  .project-card:nth-child(even) .project-link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "meta"
      "title"
      "description"
      "footer";
    row-gap: 0;
  }

  .project-link .product-window {
    height: auto;
    margin-bottom: 1.4rem;
  }

  .project-link h3 {
    font-size: clamp(2rem, 5vw, 2.55rem);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    display: block;
    overflow: visible;
    padding: 0 var(--gutter);
  }

  .project-card {
    min-width: 0;
    padding-block: 2.5rem;
  }

  .project-card:first-child {
    padding-top: 1.5rem;
  }

  .project-link .product-window {
    height: auto;
  }

  .project-link h3 {
    font-size: clamp(2rem, 10vw, 2.4rem);
  }

  .project-link .project-bottom {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .swipe-hint {
    display: none;
  }

  .contact {
    padding-block: 4.5rem 3.5rem;
  }

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

  .contact-heading p {
    font-size: 0.92rem;
  }

  .site-footer {
    padding-block: 1.75rem;
  }

  .footer-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ==========================================================
   Alt. product previews v1
   ========================================================== */

/* Status */

.status.launching {
  color: #5b21b6;
}

/* Tenho? */

.tenho-content {
  height: calc(100% - 40px);
  padding: 1.35rem 1.6rem;
  background: #f8f5ef;
}

.tenho-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.tenho-heading span,
.tenho-footer small {
  color: #81798b;
  font: 0.48rem var(--mono);
  letter-spacing: 0.06em;
}

.tenho-heading strong {
  color: #5b21b6;
  font: 600 0.9rem var(--display);
}

.tenho-search {
  padding: 0.7rem 0.8rem;
  border: 1px solid #ded6e7;
  border-radius: 7px;
  background: white;
  color: #96909c;
  font: 0.52rem var(--sans);
}

.tenho-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.tenho-grid div {
  min-height: 44px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #e0d9e7;
  border-radius: 7px;
  background: white;
  font-size: 0.56rem;
}

.tenho-grid i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #eee5fa;
  box-shadow: inset 2px 0 0 #5b21b6;
}

.tenho-footer {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dfd8e4;
}

.tenho-footer strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.56rem;
  line-height: 1.2;
}

/* Rods. */

.rods-content {
  height: calc(100% - 40px);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.2rem;
  background: #18211d;
  color: white;
}

.rods-balance small,
.rods-summary small {
  color: #93a098;
  font: 0.46rem var(--mono);
}

.rods-balance strong {
  display: block;
  margin: 0.7rem 0;
  font: 600 1.75rem var(--display);
}

.rods-balance span {
  color: #75b394;
  font: 0.52rem var(--mono);
}

.rods-chart {
  height: 92px;
  display: flex;
  align-items: end;
  gap: 7px;
}

.rods-chart i {
  flex: 1;
  height: 38%;
  background: #35423c;
}

.rods-chart i:nth-child(2) {
  height: 58%;
}

.rods-chart i:nth-child(3) {
  height: 46%;
}

.rods-chart i:nth-child(4) {
  height: 82%;
  background: #61a181;
}

.rods-chart i:nth-child(5) {
  height: 66%;
}

.rods-chart i:nth-child(6) {
  height: 94%;
}

.rods-summary {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid #344039;
}

.rods-summary div {
  padding: 0.7rem;
  background: #202c26;
}

.rods-summary b {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
}

/* Pit. */

.pit-content {
  height: calc(100% - 40px);
  padding: 1.55rem;
  background: #f6f3ed;
}

.pit-vehicle {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ded9d0;
}

.pit-car {
  position: relative;
  flex: 0 0 86px;
  height: 48px;
}

.pit-car span {
  position: absolute;
  right: 4px;
  bottom: 9px;
  left: 4px;
  height: 24px;
  border-radius: 18px 24px 8px 8px;
  background: #191a1d;
}

.pit-car span::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 20px;
  width: 42px;
  height: 18px;
  border-radius: 20px 20px 2px 2px;
  background: #191a1d;
}

.pit-car i {
  position: absolute;
  bottom: 3px;
  width: 13px;
  height: 13px;
  border: 3px solid #191a1d;
  border-radius: 50%;
  background: #f6f3ed;
}

.pit-car i:nth-of-type(1) {
  left: 15px;
}

.pit-car i:nth-of-type(2) {
  right: 13px;
}

.pit-vehicle-copy small,
.pit-data small {
  color: #847d73;
  font: 0.46rem var(--mono);
}

.pit-vehicle-copy strong {
  display: block;
  margin: 0.25rem 0;
  font: 600 1rem var(--display);
}

.pit-vehicle-copy span {
  color: #777168;
  font-size: 0.52rem;
}

.pit-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.pit-data div {
  padding: 0.75rem;
  border: 1px solid #dfdad1;
  background: white;
}

.pit-data strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
}

.pit-register {
  width: max-content;
  margin: 0.85rem 0 0 auto;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: #18191c;
  color: white;
  font: 500 0.47rem var(--mono);
}

/* Leve product identity */

.leve-window .moods i:nth-child(3) {
  border-color: #438d70;
  background: #438d70;
}

.leve-window .habit span i {
  background: #438d70;
}

/* Leve card details. */

.project-card:nth-child(4) .project-bottom {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}

.project-card:nth-child(4) .access {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.project-card:nth-child(4) .project-link:hover .access {
  color: var(--signature);
}

/* Product preview mobile */

@media (max-width: 700px) {
  .tenho-content,
  .rods-content,
  .pit-content {
    padding: 1.25rem;
  }

  .tenho-grid div {
    min-height: 44px;
  }

  .tenho-footer {
    margin-top: 0.6rem;
    padding-top: 0.45rem;
  }

  .rods-balance strong {
    font-size: 1.45rem;
  }

  .pit-car {
    flex-basis: 72px;
    transform: scale(0.88);
    transform-origin: left center;
  }
}

/* Reduced motion */

@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;
  }

  .project-link:hover .product-window > *,
  .project-link:focus-visible .product-window > * {
    transform: none;
  }
}
