@font-face {
  font-family: Bricolage;
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f0f1eb;
  --white: #fcfdf9;
  --ink: #191c18;
  --muted: #50574d;
  --rule: #cacdc1;
  --lime: #cbf443;
  --forest: #20281f;
  --display: Bricolage, 'Instrument Sans', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 84px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 28px; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.55 var(--body); background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #3f6104; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--lime); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--edge), 1380px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; color: var(--ink); background: var(--lime); padding: 10px 16px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.icon { position: relative; display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; }
.icon::before { content: ''; position: absolute; width: 10px; height: 1px; background: currentColor; left: 1px; top: 6px; rotate: -45deg; }
.icon::after { content: ''; position: absolute; width: 6px; height: 6px; border-top: 1px solid; border-right: 1px solid; left: 5px; top: 1px; }
.icon.down { rotate: 135deg; }
.icon.up { rotate: -45deg; }
.icon.left { rotate: 225deg; }
.icon.right { rotate: 45deg; }
.header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; white-space: nowrap; font: 800 1.3rem/1 var(--display); letter-spacing: -.035em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #20261c; }
.brand-mark img { width: 24px; height: 24px; object-fit: contain; }
.header nav { display: flex; gap: clamp(19px, 2.8vw, 40px); font-size: .86rem; font-weight: 550; }
.header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { min-height: 48px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 9px; padding: 10px 15px; border: 1px solid transparent; border-radius: 6px; font-weight: 650; font-size: .86rem; line-height: 1.25; transition: background .17s, color .17s, border-color .17s; }
.button-lime { background: var(--lime); color: #1a2011; border-color: #aed236; }
.button-lime:hover { background: #dafa75; }
.button-outline { border-color: #aeb3a7; }
.button-outline:hover { background: #e6e9dd; }
.header-action { justify-self: end; background: var(--ink); color: var(--white); }
.header-action:hover { background: #414940; }
.hero { padding-block: clamp(44px, 5.1vw, 78px) clamp(42px, 4.5vw, 69px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4.5vw, 75px); }
.hero h1, .demo h1, .contact h1 { font: 800 clamp(43px, 6.05vw, 92px)/.99 var(--display); letter-spacing: -.04em; }
.hero h1 { max-width: 12.5ch; text-wrap: balance; }
.hero-copy p { color: var(--muted); margin-top: 20px; font-size: clamp(1rem, 1.53vw, 1.25rem); max-width: 34ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-work { overflow: hidden; isolation: isolate; position: relative; min-height: 290px; aspect-ratio: 1.29; border-radius: 14px; background: #232c22; }
.hero-work picture { position: absolute; inset: 0; z-index: 1; }
.hero-work :is(.hero-poster, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-work-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 20px 15px 12px;
  color: var(--white);
  background: linear-gradient(0deg, #131910 0%, #131910ed 52%, #13191000 100%);
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.2;
}
.hero-play {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}
.hero-play:hover { background: #dafa75; }
.hero-play:focus-visible { outline-color: var(--white); outline-offset: 3px; }
.play-symbol { width: 0; height: 0; border-block: 4px solid transparent; border-left: 7px solid currentColor; }
.hero-play[data-playing] .play-symbol { width: 8px; height: 9px; border: solid currentColor; border-width: 0 2px; }
.simple-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .82rem; font-weight: 700; }
.simple-link { padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.simple-link:hover { color: #415815; }

.project { display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr); gap: clamp(25px, 5vw, 80px); align-items: center; }
.matadeira-project { grid-template-columns: minmax(0,1.11fr) minmax(0,.89fr); }
.matadeira-project .project-copy { order: 2; }
.matadeira-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }

.project-client { font-size: .85rem; color: #42532f; font-weight: 700; margin-bottom: 8px; }
.project :is(h3,h4) { margin: 0; font: 770 clamp(30px, 3.75vw, 55px)/1.04 var(--display); letter-spacing: -.04em; max-width: 15ch; }
.project-copy > p:not(.project-client) { margin-top: 13px; color: var(--muted); max-width: 48ch; }
.project-copy > .simple-link, .project-links { margin-top: 16px; }
.compra-farta-link { margin-top: 20px; }
.system-screen { background: #e9ece3; border-radius: 12px; overflow: hidden; padding: 11px; }
.system-screen img { width: 100%; aspect-ratio: 1.57; height: auto; object-fit: contain; object-position: center; background: #e9ece3; border-radius: 7px; }
.system-screen figcaption { padding: 8px 2px 0; color: #475141; font-size: .75rem; }
.iapi-project { grid-template-columns: minmax(0,1.11fr) minmax(0,.89fr); }
.iapi-project .project-copy { order: 2; }
.iapi-work { overflow: hidden; padding: clamp(14px, 2.25vw, 30px); border-radius: 12px; background: #e4eef0; }
.iap-devices { position: relative; display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1fr); align-items: center; justify-items: center; gap: clamp(9px, 2.1vw, 32px); padding: 8px clamp(10px, 4vw, 57px) 17px; }
.iap-devices img { width: min(100%, 204px); aspect-ratio: 430/931; height: auto; object-fit: cover; object-position: center; background: #09131a; border: 3px solid #24343d; border-radius: 11% / 5.1%; }
.iap-companion { transform: rotate(-8deg) translateY(3%); box-shadow: 0 12px 23px #1118192b; }
.iapi-preview { width: 100%; position: relative; }
.iapi-preview img { margin-inline: auto; transform: rotate(5deg); box-shadow: 0 12px 20px #11181936; }
.iapi-options { display: flex; flex-wrap: wrap; gap: 6px; }
.iapi-options button { background: transparent; border: 1px solid #829594; border-radius: 5px; padding: 6px 9px; min-height: 42px; font-size: .8rem; font-weight: 650; }
.iapi-options button:hover { background: #d1e2e5; }
.iapi-options button[aria-pressed=true] { background: #1b363b; color: #f6fff8; border-color: #1b363b; }
#iapi-caption { color: #3c5056; padding-top: 9px; min-height: 3.2em; font-size: .84rem; }
.machine { background: #202622; color: var(--white); border-radius: 12px; overflow: hidden; }
.machine-stage { isolation: isolate; position: relative; height: clamp(260px, 36vw, 520px); background: #202326; overflow: hidden; }
.machine-poster { width: 100%; height: 100%; object-fit: cover; }
[data-model-slot] { position: absolute; inset: 0; }
.machine-load { position: absolute; z-index: 2; bottom: 14px; left: 14px; }
.machine-load[hidden] { display: none; }
.machine-load:disabled { opacity: .75; cursor: progress; }
.machine-controls { position: absolute; z-index: 3; bottom: 14px; left: 14px; max-width: calc(100% - 28px); display: flex; flex-wrap: wrap; gap: 6px; }
.machine-control { min-height: 40px; padding: 6px 10px; border-radius: 5px; border: 1px solid #687363; background: #151b16; color: #fffff8; font-size: .78rem; }
.machine-control:hover, .machine-control[aria-pressed=true] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
[data-model-status] { position: absolute; z-index: 2; bottom: 23px; right: 13px; max-width: 48%; color: var(--white); font-size: .75rem; text-align: right; text-shadow: 0 1px 5px #000; pointer-events: none; }
.machine-stage[data-viewer-state=ready] [data-model-status] { top: 11px; bottom: auto; max-width: calc(100% - 28px); }
.machine figcaption { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: #c8cfc4; font-size: .78rem; }
.machine figcaption strong { color: var(--white); }

.video-portfolio { padding-block: clamp(55px, 7.2vw, 100px); background: #e6ece0; }
.video-portfolio-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(30px, 8vw, 120px); }
.video-portfolio h1 { font: 800 clamp(40px, 5.15vw, 74px)/.99 var(--display); letter-spacing: -.04em; }
.video-portfolio-copy > p { margin-top: 15px; max-width: 41ch; color: var(--muted); }
.video-playlist { display: grid; margin-top: 25px; border-top: 1px solid #b0b9aa; }
.video-playlist button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid #b0b9aa; background: transparent; color: var(--ink); transition: background .16s, color .16s; }
.video-playlist button:not([aria-pressed=true]):hover { background: #d7e0d0; }
.video-playlist button[aria-pressed=true] { background: var(--forest); color: var(--white); }
.video-playlist strong { display: block; font: 740 1.24rem/1.16 var(--display); }
.video-playlist small { display: block; margin-top: 4px; font-size: .8rem; }
.video-playlist button[aria-pressed=false] small { color: var(--muted); }
.video-quote { margin-top: 23px; }
.video-feature { min-width: 0; width: min(100%, 358px); justify-self: center; }
.video-frame { position: relative; aspect-ratio: 9/16; isolation: isolate; overflow: hidden; border-radius: 12px; background: #192622; }
.video-frame:focus-within { outline: 2px solid #3f6104; outline-offset: 5px; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.video-play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; border: 0; padding: 0; background: transparent; color: var(--ink); }
.video-play .play-symbol { position: relative; z-index: 1; border-block-width: 9px; border-left-width: 14px; transform: translateX(1px); }
.video-play::before { content: ''; position: absolute; width: 60px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: 0 6px 22px #111b15a6; }
.video-play:hover::before { background: #e0ff83; }
.video-play:disabled::before { opacity: .8; }
.video-feature figcaption { padding: 9px 0 0; color: #354433; font-size: .81rem; font-weight: 640; }
.video-error { margin-top: 5px; font-size: .8rem; color: #802818; }
.video-error:empty { display: none; }

.demo { padding-block: clamp(55px, 7.2vw, 100px); background: var(--forest); color: var(--white); }
.demo-layout, .contact-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(25px, 6vw, 85px); align-items: center; }
.demo h1 { max-width: 12ch; }
.demo-copy > p { margin-top: 16px; max-width: 42ch; color: #dce3d7; }
.demo-copy > .demo-note { color: #c4d1bb; font-size: .82rem; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 17px; margin-top: 19px; }
.demo-copy .simple-link:hover { color: var(--lime); }
.demo :focus-visible, .machine :focus-visible { outline-color: var(--lime); }
.contact { background: var(--lime); padding-block: clamp(48px, 7vw, 96px); }
.contact h1 { max-width: 13ch; }
.contact p { margin-top: 13px; max-width: 42ch; color: #33401f; }
.contact-form { display: grid; gap: 12px; max-width: 520px; }
.contact-form label { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; }
.contact-form select, .contact-form textarea { background: #f8ffdc; border: 1px solid #738b38; border-radius: 6px; color: var(--ink); padding: 8px 10px; width: 100%; }
.contact-form select { min-height: 43px; }
.contact-form textarea { min-height: 86px; resize: vertical; }
.contact-form .button { background: var(--ink); color: white; }
.contact-form .button:hover { background: #414940; }
.contact-panel .contact-note { font-size: .79rem; margin-top: 1px; }
.contact-panel .contact-email { margin-top: 8px; font-size: .83rem; }
.footer { padding-block: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px 24px; }
.footer-inner > span { font-size: .82rem; color: var(--muted); }

.header nav [aria-current] { font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.home-services { padding-block: clamp(12px, 2vw, 30px) clamp(32px, 5vw, 72px); }
.home-services h2, .home-work h2, .home-start h2 {
  font: 780 clamp(30px, 3.4vw, 54px)/1.04 var(--display);
  letter-spacing: -.04em;
}
.home-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); margin-top: 21px; }
.home-goal { padding: clamp(16px, 2.7vw, 34px); border-inline-start: 1px solid var(--rule); }
.home-goal:first-child { padding-inline-start: 0; border-inline-start: 0; }
.home-goal h3 { font: 750 clamp(21px, 2.2vw, 32px)/1.06 var(--display); letter-spacing: -.035em; }
.home-goal p { margin-top: 8px; color: var(--muted); max-width: 32ch; }
.home-goal > div { display: flex; flex-wrap: wrap; gap: 7px 9px; margin-top: 15px; }
.home-goal a { border: 1px solid #aeb6a5; border-radius: 5px; padding: 5px 8px; font-size: .81rem; font-weight: 700; }
.home-goal a:hover { background: #dce5c8; }
.home-work { background: var(--white); padding-block: clamp(35px, 5.1vw, 75px); }
.home-work-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; margin-bottom: 21px; }
.home-work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 27px); }
.home-work-card { display: block; }
.home-work-card img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; border-radius: 8px; background: #e4eae1; }
.home-work-card img.home-work-iap { object-fit: contain; background: #172834; }
.home-work-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 7px; }
.home-work-card h3 { font: 750 clamp(18px, 2.2vw, 29px)/1.06 var(--display); letter-spacing: -.025em; }
.home-work-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.home-work-card p { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.home-start { background: var(--lime); padding-block: clamp(26px, 4.2vw, 60px); }
.home-start-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px 25px; }
.home-start p { margin-top: 6px; }
.detail-shell { padding-block: clamp(28px, 5vw, 76px); }
.detail-project { margin-block: clamp(24px, 4vw, 55px); }
.detail-project h1, .missing-page h1 {
  font: 790 clamp(36px, 5.1vw, 72px)/1.01 var(--display);
  letter-spacing: -.04em;
  max-width: 16ch;
}
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 19px; }
.detail-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 17px clamp(14px, 3vw, 30px); background: #e4ead8; border-radius: 8px; }
.missing-page { padding-block: 60px; }
.missing-page p { margin-top: 10px; }
.missing-page .button { margin-top: 18px; }
.page-contato .contact { min-height: 65vh; }
.page-demo .demo { min-height: 64vh; }

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .header nav { gap: 15px; }
  .hero h1 { font-size: clamp(40px, 6.75vw, 63px); }
  .hero-work { min-height: 260px; }

}
@media (max-width: 680px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 62px; }
  .header nav { order: 3; grid-column: 1 / -1; gap: 0; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); }
  .header nav a { padding-block: 9px; min-height: 42px; display: inline-flex; align-items: center; }
  .header-inner { row-gap: 7px; padding-top: 11px; }
  .header-action { min-height: 40px; padding: 8px 10px; font-size: .75rem; }
  .home-goals { grid-template-columns: 1fr; }
  .home-goal { border-inline-start: 0; padding-inline: 0; }
  .home-goal + .home-goal { border-top: 1px solid var(--rule); }
  .home-goal p { max-width: 45ch; margin-top: 5px; }
  .home-goal > div { margin-top: 8px; }
  .home-goal a { display: inline-flex; align-items: center; min-height: 36px; }
  .home-work-heading, .home-start-inner { align-items: flex-start; flex-direction: column; }
  .home-work-list { grid-template-columns: 1fr; gap: 13px; }
  .home-work-card { display: grid; grid-template-columns: minmax(78px, 30%) 1fr; grid-template-rows: auto 1fr; column-gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--rule); }
  .home-work-card img { grid-row: 1 / 3; height: 72px; aspect-ratio: auto; }
  .home-work-card > div { padding-top: 0; }
  .home-work-card p { grid-column: 2; }
  .hero { grid-template-columns: 1fr; padding-block: 38px 34px; gap: 25px; }
  .hero h1 { font-size: clamp(39px, 10.2vw, 59px); max-width: 14ch; text-wrap: unset; }
  .hero-copy p { margin-top: 13px; }
  .actions { margin-top: 18px; }
  .hero-work { min-height: 0; aspect-ratio: 1.47; }
  .hero-work-controls { padding: 16px 11px 9px; font-size: .77rem; }
  .hero-play { padding-inline: 10px; }
  .project, .iapi-project, .matadeira-project, .video-portfolio-layout, .demo-layout, .contact-layout { grid-template-columns: 1fr; }
  .matadeira-project .project-copy { order: 0; }
  .iapi-project .project-copy { order: 0; }
  .iap-devices { padding-inline: clamp(12px, 7vw, 42px); }
  .iap-devices img { width: min(100%, 162px); }
  #iapi-caption { min-height: 3.8em; }
  .machine-stage { height: 310px; }
  .video-feature { width: min(100%, 300px); }
  .video-portfolio-layout { gap: 24px; }
}
@media (max-width: 355px) {
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-action .icon { display: none; }
  .button { padding-inline: 10px; }
  .hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
