/* A refinement of David's composition; the original document stays intact. */
html {
  background: #101010;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
}
body {
  background: #101010;
  background-attachment: fixed;
  overscroll-behavior-y: none;
}

[data-projects-brands-outside] {
  position: relative;
  z-index: 1;
}
.s-marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 48px) 0 12px;
  background: var(--site-bg, #101010);
}
.s-marquee-rows {
  display: grid;
  gap: 28px;
}
.s-marquee-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.s-marquee-ribbon {
  display: flex;
  width: max-content;
  color: var(--site-text, #eceae3);
  animation: s-marquee-forward 60s linear infinite;
  animation-play-state: paused;
}
.s-marquee[data-running="true"] .s-marquee-ribbon { animation-play-state: running; }
.s-marquee-row:nth-child(2) .s-marquee-ribbon { animation-direction: reverse; }
.s-marquee-group {
  --brand-gap: clamp(24px, 2.8vw, 40px);
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: var(--brand-gap);
  min-width: 100vw;
  box-sizing: border-box;
  padding-right: var(--brand-gap);
}
.s-marquee-brand {
  display: grid;
  flex: 0 0 140px;
  place-items: center;
  width: 140px;
  height: 56px;
  opacity: .6;
  transition: color .2s, opacity .2s;
}
.s-marquee-brand:hover { color: #ff5000; opacity: 1; }
.s-marquee-brand svg { display: block; width: 52px; height: 52px; }
.s-marquee-wordmark svg { width: 110px; }
@keyframes s-marquee-forward { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media(max-width: 767px) {
  .s-marquee-rows { gap: 20px; }
  .s-marquee-brand { flex-basis: 76px; width: 76px; height: 32px; }
  .s-marquee-brand svg { width: 28px; height: 28px; }
  .s-marquee-wordmark svg { width: 64px; }
}
@media(prefers-reduced-motion: reduce) {
  .s-marquee { padding-bottom: 32px; }
  .s-marquee-row { mask-image: none; }
  .s-marquee-row[aria-hidden="true"], .s-marquee-group[aria-hidden="true"] { display: none; }
  .s-marquee .s-marquee-ribbon { width: 100%; animation: none; }
  .s-marquee-group { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 0 24px; }
}
[data-projects-gallery] {
  height: auto;
  scroll-margin-top: 110px;
}
[data-projects-gallery] + [data-projects-brands-outside] [data-projects-brands] {
  margin-top: 0 !important;
}
.portfolio-section {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px clamp(24px, 7vw, 100px) 24px;
  color: #171714;
  font-family: var(--font-display), sans-serif;
}
.portfolio-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}
.portfolio-heading h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(36px, 4.3vw, 62px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.055em;
}
.portfolio-heading > p {
  max-width: 38ch;
  margin: 0 0 3px;
  color: #585850;
  font-size: 16px;
  line-height: 1.7;
}
.portfolio-section :is(a, button):focus-visible { outline: 2px solid #a93100; outline-offset: 6px; }












@media(max-width: 900px) {
  .portfolio-heading { gap: 32px; }

}
@media(max-width: 600px) {
  [data-projects-gallery] { scroll-margin-top: 140px; }
  .portfolio-section { padding-top: 40px; padding-bottom: 16px; }
  .portfolio-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .portfolio-heading h2 { max-width: 12ch; }

}
/* Phones show the tall mobile screenshot: one page whole, neighbours turning away at the sides. */
@media(max-width: 719px) {
  .portfolio-heading > p { display: none; }

}
@media(max-width:719px) {
  [data-projects-conveyor] { margin-top: calc(-22.125rem + 24px); }
}
@container (max-height: 320px) {
  [data-projects-main] h2 {
    font-size: var(--text-xl) !important;
  }
  [data-projects-main] > div:last-child > svg {
    display: none;
  }
  [data-projects-main] > div:last-child > p {
    font-size: var(--text-sm) !important;
    margin-top: 0.5rem !important;
  }
  [data-projects-main] > div:last-child > div {
    margin-top: 0.75rem !important;
  }
}
@media (max-width: 719px) {
  [data-frame-desktop] {
    display: none;
  }
  [data-frame-mobile] {
    display: inline;
  }
  [data-projects-scene] > #projetos [data-projects-main] {
    padding-inline: 1.5rem;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 1.25rem;
  }
  [data-projects-scene] > #projetos .wk-col {
    width: 100%;
  }
  [data-projects-scene] > #projetos .wk-down {
    display: none;
  }
  [data-projects-scene] > #projetos .wk-card {
    padding: 0.75rem;
    font-size: var(--text-sm);
  }
  [data-projects-scene]
    > #projetos
    [data-projects-main]
    > div:last-child
    > div {
    margin-top: 1rem !important;
  }
  [data-projects-scene] > #projetos [data-projects-main] a {
    padding-inline: 0.75rem !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0 !important;
  }
  [data-projects-scene] > #projetos [data-projects-main] a svg {
    flex: none;
  }
}

#inicio {
  box-sizing: border-box;
  max-width: 1400px !important;
  min-height: 1284px;
  padding: 11.75rem 2.5rem 28.375rem !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0 clamp(1.75rem, 5vw, 4.5rem) !important;
  align-items: start !important;
  align-content: start;
}
/* The headline sits centred against the form card beside it. */
#inicio > div:first-of-type {
  min-width: 0;
  align-self: center;
}
#inicio h1 {
  max-width: none !important;
  font-size: clamp(2.125rem, 4.7vw, 4rem) !important;
  line-height: 1.07 !important;
  letter-spacing: -0.035em !important;
  font-kerning: normal;
}
#inicio > div:first-of-type > p:first-of-type {
  margin-top: 1.5rem !important;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem) !important;
}
#inicio > div:first-of-type > p:last-of-type {
  max-width: 46ch !important;
  font-size: var(--text-md) !important;
  line-height: 1.65 !important;
  color: #bdbbb3 !important;
}
#inicio > div:first-of-type > svg {
  margin: 1.5rem 0 !important;
}
#inicio .lead-column {
  min-height: 0;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
#inicio .lead-card {
  --lead-corner: clamp(44px, 6vw, 80px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 2.25rem 2.25rem;
  border: 0;
  border-radius: var(--lead-corner) 0.5rem var(--lead-corner) 0.5rem;
  background: #33332f;
  box-shadow: none; /* taste-skill-ignore: removes the inherited resting shadow. */
  scroll-margin-top: 128px;
}
#inicio .lead-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -2;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, var(--orange) 60deg, transparent 120deg);
  animation: lead-border-orbit 6s linear infinite;
  animation-play-state: paused;
}
#inicio .lead-card[data-border-active]::before {
  animation-play-state: running;
}
#inicio .lead-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--lead-corner) - 0.125rem) 0.375rem calc(var(--lead-corner) - 0.125rem) 0.375rem;
  background: #0a0a0a;
  pointer-events: none;
}
@keyframes lead-border-orbit {
  to { transform: rotate(360deg); }
}
.lead-card-beam { display: none; }
@media (max-width: 719px) {
  /* Reuse the header's segmented beam, following the card's own corners. */
  #inicio .lead-card::before { display: none; }
  #inicio .lead-card .lead-card-beam {
    display: block;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
  }
  #inicio .lead-card .lead-card-beam .bm-edge {
    padding: 3px;
    border-radius: inherit;
  }
  #inicio .lead-card .lead-card-beam i {
    offset-path: inset(2px round calc(var(--lead-corner) - 2px) 6px calc(var(--lead-corner) - 2px) 6px);
    animation-play-state: paused;
  }
  #inicio .lead-card[data-border-active] .lead-card-beam i { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  #inicio .lead-card::before { animation: none; }
  #inicio .lead-card .lead-card-beam { display: none; }
}
#inicio .lead-title {
  font-size: 1.625rem;
  line-height: 1.2;
  margin-bottom: 1.375rem;
  text-wrap: balance;
}
#inicio .lead-field {
  margin-bottom: 0.75rem;
}
#inicio .lead-field-group {
  margin-bottom: 0.75rem;
}
#inicio .lead-field-group .lead-field {
  margin-bottom: 0;
}
.lead-field-error {
  min-height: calc(1.45em + 7px);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.lead-field-error[data-visible] {
  opacity: 1;
  transform: translateY(0);
}
.lead-field-error p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #ff9572;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.lead-field-error p span {
  display: block;
  padding-top: 0.4375rem;
}
#inicio .lead-field input[aria-invalid="true"] {
  border-color: #ff7957;
}
#inicio .lead-again {
  margin-top: 1.75rem;
}
@media (max-width: 719px) {
  .lead-field-error {
    min-height: calc(2.9em + 7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lead-field-error {
    transition: none;
    transform: none;
  }
}
#inicio .lead-label {
  z-index: 1;
  top: 7px;
  left: 15px;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  color: #bdbbb3;
  font-size: 0.8125rem;
  line-height: 1.2;
  pointer-events: none;
}
#inicio .lead-field input {
  background: #1c1c1b;
  border-color: #33332f;
  height: 58px;
  padding: 1.125rem 2.75rem 0 0.875rem;
  caret-color: var(--orange);
}
#inicio .lead-field input::placeholder {
  color: transparent;
}
#inicio .lead-field input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
#inicio .lead-field:focus-within .lead-label {
  color: #f1f0eb;
}
#inicio .lead-field svg {
  top: 19px;
}
#inicio .lead-note {
  margin: 0.875rem 0;
  color: #bdbbb3;
  line-height: 1.5;
}
#inicio .lead-submit {
  min-height: 54px;
  font-size: var(--text-sm);
  letter-spacing: 0.015em;
}
#inicio .lead-submit-arrow {
  width: 50px;
}
#inicio .lead-submit-arrow svg {
  transition: transform 180ms ease;
}
#inicio .lead-submit:hover .lead-submit-arrow svg {
  transform: translateX(3px);
}
#inicio .lead-next {
  margin-top: 1.375rem;
}
#inicio .lead-next-title {
  margin-bottom: 0.875rem;
  font-size: var(--text-xs);
  letter-spacing: 0.025em;
}
#inicio .lead-next-title::before,
#inicio .lead-next-title::after {
  display: none;
}
#inicio .lead-next-title {
  justify-content: center;
}
#inicio .lead-next li {
  color: #bdbbb3;
}
#inicio ::selection {
  background: var(--orange); color: var(--ls-on-action);
}
.qc:not([data-hero-form-away]) {
  visibility: hidden;
}
/* The quick contact yields to the full-screen footer's own contact links. */
.qc {
  z-index: 70 !important;
}
body:has(.home-footer-reveal[data-in-view]) .qc {
  visibility: hidden;
}

@media (max-width: 1119px) {
  #inicio {
    padding: 11rem 2rem 28.375rem !important;
  }
  #inicio > div:first-of-type > p:last-of-type {
    font-size: var(--text-base) !important;
  }
  #inicio .lead-card {
    padding: 2rem 1.75rem;
  }
  #inicio .lead-title {
    font-size: 1.4375rem;
  }
  #inicio .lead-next ol {
    gap: 0.5rem;
  }
  #inicio .lead-next li {
    font-size: 0.8125rem;
  }
}
@media (max-width: 719px) {
  #inicio {
    min-height: 1408px;
    padding: 6.5rem 1.5rem 22.125rem !important;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.75rem !important;
  }
  #inicio > div:first-of-type {
    padding-top: 0;
  }
  #inicio h1 {
    font-size: clamp(2.125rem, 6.5vw, 2.75rem) !important;
  }
  #inicio > div:first-of-type > p:first-of-type {
    margin-top: 1rem !important;
    font-size: 1.4375rem !important;
  }
  #inicio > div:first-of-type > svg {
    margin: 1.125rem 0 !important;
  }
  #inicio > div:first-of-type > p:last-of-type {
    max-width: 40ch !important;
    line-height: 1.55 !important;
  }
  #inicio .lead-column {
    justify-self: start;
  }
  #inicio .lead-card {
    padding: 2rem 1.625rem;
  }
  #inicio .lead-title {
    max-width: 25ch;
    font-size: var(--text-xl);
    margin-bottom: 1.125rem;
  }
  #inicio .lead-field {
    margin-bottom: 0.625rem;
  }
  #inicio .lead-field input {
    height: 56px;
  }
  #inicio .lead-note {
    margin: 0.75rem 0;
    font-size: 0.8125rem;
  }
  #inicio .lead-next {
    margin-top: 1.125rem;
  }
}
@media (max-width: 359px) {
  #inicio {
    padding: 6rem 1.25rem 22.125rem !important;
  }
  #inicio h1 {
    font-size: 1.875rem !important;
  }
  #inicio > div:first-of-type > p:first-of-type {
    font-size: 1.3125rem !important;
  }
  #inicio > div:first-of-type > p:last-of-type {
    font-size: 0.9375rem !important;
  }
  #inicio .lead-card {
    padding-inline: 1.5rem;
  }
  #inicio .lead-title {
    font-size: 1.375rem;
  }
  #inicio .lead-submit {
    font-size: 0.8125rem;
  }
  #inicio .lead-submit-arrow {
    width: 44px;
  }
  #inicio .lead-next li {
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  #inicio .lead-submit-arrow svg {
    transition: none;
  }
}

/* A clear three-step path from the enquiry to the proposal. */
#inicio .lead-next {
  margin-top: 1.75rem;
}
#inicio .lead-next ol {
  position: relative;
  gap: 0.875rem;
}
#inicio .lead-next li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + 22px);
  width: calc(100% + 0.875rem - 44px);
  height: 1px;
  background: #493020;
}
#inicio .lead-next li {
  position: relative;
  gap: 0.625rem;
  color: #d2d0c8;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  text-wrap: balance;
}
#inicio .lead-next li svg {
  position: relative;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0.625rem;
  stroke: #ff7b3e;
}
[data-projects-scene] > #projetos h2 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 3.5vw, 3.125rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
}
[data-projects-scene] > #projetos p {
  max-width: 35ch;
  color: #62625b !important;
  line-height: 1.65 !important;
}
[data-projects-scene] > #projetos [data-projects-main] a {
  gap: 1.125rem !important;
  min-height: 58px !important;
  padding: 0.5rem 0.5625rem 0.5rem 1.5rem !important;
  border-radius: 62.4375rem !important;
  background: #151513 !important;
  color: #f1f0eb !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}
[data-projects-scene] > #projetos [data-projects-main] a svg {
  box-sizing: border-box;
  width: 40px !important;
  height: 40px !important;
  padding: 0.6875rem;
  border-radius: 50%;
  background: #151513;
  stroke: #fff;
  transition: background-color 180ms ease;
}
[data-projects-scene] > #projetos [data-projects-main] a:is(:hover, :focus-visible) svg {
  background: var(--orange);
}
[data-projects-scene] > #projetos [data-projects-main] a:hover {
  opacity: 1;
  background: #151513 !important;
  transform: translateY(-2px);
}
[data-projects-scene] > #projetos [data-projects-main] a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
[data-projects-scene] > #projetos .wk-card {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #d8d7cf;
  border-radius: 0.875rem;
}
@media (max-width: 719px) {
  [data-projects-scene] > #projetos h2 {
    font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
  }
  [data-projects-scene] > #projetos [data-projects-main] a {
    gap: 0.625rem !important;
    min-height: 48px !important;
    padding: 0.4375rem 0.4375rem 0.4375rem 0.875rem !important;
    font-size: var(--text-xs) !important;
  }
  [data-projects-scene] > #projetos [data-projects-main] a svg {
    width: 32px !important;
    height: 32px !important;
    padding: 0.5rem;
  }
  [data-projects-scene] > #projetos .wk-card {
    font-size: var(--text-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-projects-scene] > #projetos [data-projects-main] a {
    transition: none;
  }
}

/* Brand strip: technology logos only, in one grey, real colour on hover. */
.wk-tech {
  flex: none;
  display: inline-flex;
  align-items: center;
  margin-right: 6rem;
  color: #6f6f69;
  transition: color 200ms ease;
}
.wk-tech svg {
  width: 46px;
  height: 46px;
  fill: currentColor;
}
/* Canva's logo is its wordmark: wider, at the same visual height. */
.wk-tech.wk-wordmark svg {
  width: 107px;
  height: 40px;
}
.wk-tech:hover {
  color: var(--brand);
}
.wk-track:hover {
  animation-play-state: paused;
}
@media (max-width: 767px) {
  .wk-tech {
    margin-right: 3.75rem;
  }
  .wk-tech svg {
    width: 36px;
    height: 36px;
  }
  .wk-tech.wk-wordmark svg {
    width: 85px;
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wk-tech {
    transition: none;
  }
}
.portfolio-all-projects{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;width:fit-content;margin:0;color:var(--site-text,#f1f0eb);text-decoration:underline;text-underline-offset:5px;font:500 15px var(--font-sans)}
.portfolio-all-projects:focus-visible{outline:2px solid var(--site-accent, #ff5000);outline-offset:4px}
/* The portfolio now follows the hero directly, without the decorative rail. */
[data-projects-scene][data-projects-gallery] { margin-top: 0; padding-top: 0; }
[data-projects-gallery] .portfolio-section { padding-top: clamp(48px, 6vw, 88px); }
#inicio { padding-bottom: 80px !important; min-height: 0; }
@media(max-width:719px) { #inicio { padding-bottom: 56px !important; min-height: 0; } }
